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.
这篇关于刷新令牌后如何恢复主题订阅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:刷新令牌后如何恢复主题订阅?


基础教程推荐
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01