Originally, I had a working app and receiving push notifications successfully. I reorganized our project in firebase and we've deleted and re-added the app to the console (in the same project). I've redownloaded the google-services.json
file and noticed a few things changed like the mobilesdk_app_id
for the specific app package I'm testing.
If I do a clean install with the new changes I can successfully receive a push notification. However, if I install a previous version with the old google-services.json
and upgrade without uninstalling first, I cannot receive any notifications. I also see that I do not get a callback for a new token in the FirebaseMessagingService -> onNewToken
method after upgrading.
Is there a way to debug this issue? Can I force Firebase to give me a new token since the json file has changed? I'm sending these notifications from the console and targeting the correct app. I'm confused as to why a fresh install with the new json file works but upgrading from a previous version does not.