I have implemented the push notification feature for my xamarin forms project (both android and ios). The token registration class
FirebaseRegistrationService is working only on the fresh installation. When taking updates this class is not firing and no token is generating. As per this blog,
OnTokenRefresh is invoked infrequently: it is used to update the token under the following circumstances:
When the app is installed or uninstalled.
When the user deletes app data.
When the app erases the Instance ID.
When the security of the token has been compromised.
My problem is my app is already LIVE on the play store without the push notification. We have implemented the push notification now and planning to update it on play stores. But if the user takes the update the FCM registration will not work for them and they are not going to receive any notification. Existing users need to uninstall the app and install it again for getting the notifications. Is there any solution for this?
But on the ios part, the
DidReceiveRegistrationToken is invoking when taking updates, and no such token issue on the ios part.