作者Retrace (Camu)
看板AndroidDev
标题[问题] 关於GCM 带值储存?
时间Mon Aug 18 18:40:41 2014
各位高手 gcm推播本身就需要带一些必要的值
现在我要在带另外的值近来 而且找个方法把它存起来
让我点推播的时候 可以使用到这个值
尝试使用share preferences 似乎没有办法
请问各位高手建议用什麽方式?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 1.34.144.134
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1408358444.A.441.html
1F:→ lovelycateye: PendingIntent 08/18 18:46
2F:→ Retrace: PendingIntent 不是只负责把notification推出来吗? 08/18 19:02
3F:推 normanshi: 收到gcm存到shared pref 或db, 送intent去拿其他值, 08/18 22:23
4F:→ normanshi: 拿完检查是否拿到其他值,没拿到重拿,有拿到取出原本g 08/18 22:23
5F:→ normanshi: cm合在一起pending送出notification 08/18 22:23
6F:推 normanshi: gcm内容转json当字串存shared pref 记得用gson lib 08/18 22:26