How to restore topic subscriptions after refreshed

2019-01-09 16:49发布

问题:

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.

Thank you

回答1:

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.