I'm migrating an existing application from GCM to FCM, which wasn't too big on an issue and I was able to obtain the token with my debug builds. However, when I compile and sign the app with the production key, onTokenRefresh()
is not called.
Here is what I've done:
- There is a firebase app set up with my SHA1 signature of production key
- The app in firebase it is setup with the correct package name
- When production app is installed and opened it prints some logs, the app id in those logs matches the app in firebase dashboard
- I checked the signature of the compiled apk and it matches my SHA1
- I decompiled the app and the manifest in-fact contains the
FirebaseMessagingService
exported service that is auto generated by firebase. - I removed my SHA1 signature from all other apps
- I fully removed the app from my phone
- I am NOT using an emulator
- I verified everything is configured correctly (in works in debug builds)
- I tried changing network, did not generate the token
- I did updated
google-services.json
file - I tried cleaning the project
non of the above resolved the problem, any suggestions?