Our Android app recently migrated to Firebase. In our server logs, we see that a few users do not have a valid token. We have also determined that these users see locally scheduled notifications, but aren't actually opening the app after upgrade.
So the flow is:
- The user has a version of the app that is not using FCM.
- The user updates their app to a version that uses FCM, but does NOT open the app.
- The user is getting local notifications scheduled from previous activity, but is not opening the app or clicking on those notifications.
My question is: is this just a limitation of onTokenRefresh#FirebaseInstanceIdService
, or should we expect a token to be generated somewhere in that flow?
Note that there is an AlarmManager service that runs once every 15 minutes (I'm not sure what that does to the app lifecycle).