刷新令牌后如何恢复主题订阅? [英] How to restore topic subscriptions after refreshed token?

查看:18
本文介绍了刷新令牌后如何恢复主题订阅?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用 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.

这篇关于刷新令牌后如何恢复主题订阅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆