Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restore topic subscriptions after refreshed token?

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

like image 846
Doge Avatar asked Oct 20 '25 14:10

Doge


1 Answers

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.

like image 145
Diego Giorgini Avatar answered Oct 23 '25 04:10

Diego Giorgini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!