-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FCM IllegalStateException crash in onTokenRefresh, Android 8 only #165
Comments
I took a look into this issue and it looks like we're firing an Intent from FcmInstanceIDListenerService an Intent service to get the Intent service to get the most recent IID token and queue it for forwarding to the application. This does not work in Android 8.x (https://developer.android.com/about/versions/oreo/background) as the background service FcmInstanceIDListenerService can't start other services while the application is in the background. We have lined up a patch that should resolve this by moving the token refresh logic from the Intent service to FcmInstanceIDListenerService. The problem is pretty hard to reproduce as far as I can tell since it will only happen if the IID token changes while the app is in the background or closed. |
We have a fix checked in and it should land in a release next week. |
is this fixed in 5.0.0? |
The 5.1.0 release of the Firebase Unity SDK resolves this issue: |
Hi ,this issue also happened on firebase unitysdk 5.4.0 |
We see the same error in Unitysdk 5.4.3. Does 5.5.0 have a fix, or should we downgrade to 5.3? |
I'm getting a lot of crash reports with Firebase Cloud Messaging related to onTokenRefresh. So far it has only occurred on Android 8.0/8.1 devices, on many different Android devices. I don't have an Android 8 test device, but I tried it in an Android 8 emulator and couldn't reproduce the crash. Here's one of the crash reports on the Google Play dashboard:
The text was updated successfully, but these errors were encountered: