Relative Content

Tag Archive for androidfirebasefirebase-cloud-messaging

How FCM token rotation should be handled when the app is closed?

I am using FCM messages in an Android app. I handle new app token generation implementing the Firebase Service. But if the Google decide to rotate my app token, and my app is not started so that it can handle the new token, to update it on my server, it means that all messages that are send to the last known token will not be delivered as notifications to my app ? If that is the scenario, what strategy should I adopt so that I won’t lose messages ?

How FCM token rotation should be handled when the app is closed?

I am using FCM messages in an Android app. I handle new app token generation implementing the Firebase Service. But if the Google decide to rotate my app token, and my app is not started so that it can handle the new token, to update it on my server, it means that all messages that are send to the last known token will not be delivered as notifications to my app ? If that is the scenario, what strategy should I adopt so that I won’t lose messages ?