How to restore topic subscriptions after refreshed token?(刷新令牌后如何恢复主题订阅?)
问题描述
所以我使用 gcm 令牌来订阅特定主题.它工作正常.但现在我再次卸载并安装了该应用程序.并且设备令牌已更改.
So I was using gcm tokens to subscribe to specific topics. It was working fine. But now I uninstalled and installed the application again. And the device token is changed.
那么现在我必须再次订阅所有主题吗?或者有什么解决办法.
So Now do I have to subscribe to all topics again? Or are there any solution for that.
谢谢
推荐答案
如果令牌被刷新",则保持主题订阅.
If the token is "refreshed" the topic subscriptions are maintained.
如果应用程序被卸载并重新安装,那么它会丢失有关其过去的所有数据,您需要重新订阅所有相关主题.
If the application is uninstalled, and installed again, then it loose all the data about its past, and you need to re subscribe all the relevant topics.
当一个应用程序被卸载时,就像用户从未安装它一样.
When an application is uninstalled, it's like the user never installed it.
全新安装只是全新安装.
A new installation is just a fresh new installation.
这篇关于刷新令牌后如何恢复主题订阅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:刷新令牌后如何恢复主题订阅?
基础教程推荐
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
