Reputation: 158
The user of my Android app is subscribed to a topic after performing a specific action and was receiving the topic notifications until he/she updated the app. After the update, the user cannot receive the topic notifications anymore.
Additional info: In this particular case, the topic subscription is not performed at the app startup but only after a particular user action. The app is developed with nativescript and the nativescript-plugin-firebase plugin.
Upvotes: 2
Views: 616
Reputation: 129
Store the fact that the user is subscribed to a topic in the database. In your app, at the appropriate place call subscribe to topic function, if the user is subscribed to it. Calling the function multiple times for the same topic has no adverse effects.
Upvotes: 1
Reputation: 37778
First off, it's important to know that a token is not refreshed in an app update.
Second, even if a token is refreshed, so long as the app isn't technically uninstalled, the topic subscriptions should be kept.
So to answer your questions:
Upvotes: 3