-
Notifications
You must be signed in to change notification settings - Fork 428
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 #330
Comments
@khambadkone I think the exception you're seeing is due to the use of the Android component from the a release of the Firebase Unity SDK before 5.1.1 (see #165 for more information). The token listener service is redistributed in Why we're using |
Hi @khambadkone |
@khambadkone since we haven't heard from you we'll assume that your issue is resolved with the latest SDK. |
Please fill in the following fields:
Unity editor version: Various 2018.2.x
Firebase Unity SDK version: 5.4.3, 5.1.1
Additional SDKs you are using (Facebook, AdMob, etc.): MoPub with Facebook, IronSource.
Platform you are using the Unity editor on (Mac, Windows, or Linux): Mac
Platform you are targeting (iOS, Android, and/or desktop): Android
Please describe the issue here:
Many of our games that we have migrated from GCM (via Prime31's plugin) to Firebase report crashes. All throw the following logs 👍 java.lang.IllegalStateException:
at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1666)
at android.app.ContextImpl.startService (ContextImpl.java:1611)
at android.content.ContextWrapper.startService (ContextWrapper.java:677)
at com.google.firebase.messaging.cpp.FcmInstanceIDListenerService.onTokenRefresh (FcmInstanceIDListenerService.java:24)
at com.google.firebase.iid.FirebaseInstanceIdService.zza (Unknown Source:71)
at com.google.firebase.iid.FirebaseInstanceIdService.handleIntent (Unknown Source:158)
at com.google.firebase.iid.zzg.run (Unknown Source:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)
Please answer the following, if applicable:
No. However, our implementation in each of our games follows this same approach.
Additional question
Why isn't FirebaseMessagingService's onNewToken triggered, instead of the deprecated FcmInstanceIDListenerService.onTokenRefresh ?
The text was updated successfully, but these errors were encountered: