FirebasePushNotificationPlugin icon indicating copy to clipboard operation
FirebasePushNotificationPlugin copied to clipboard

Token changes on push notification receive with new build number

Open Freddyvdh opened this issue 5 years ago • 0 comments

💬 Questions and Help

Hi,

I'm using the plugin since version 2.x and updated to 3.x. Now I recognized, that with a new build number, the plugin resets the token. This is fine, if the user updates the app and starts it. In our behaviour the user gets messages from a server, and when the app is updated, the token changes on the first push notification which is received. I implemented a workaround, to put the new token on the server, but I would prefer to have more control of it. I.e. a 'DontResetToken' flag ;) I didn't find anything in the documentation about it.

Thanks, Freddy

Freddyvdh avatar May 20 '20 10:05 Freddyvdh