Receiver not registered: com.google.firebase.iid
See original GitHub issueDescribe your environment
- Android Studio version: 3.5
- Firebase Component: firebase-core、firebase-messaging
- Component version: firebase-core:16.0.8、firebase-messaging:18.0.0
Describe the problem
After integrating firebase messaging, we found lots of crashes log in fabric, it happened in different kind of brand phone, which most seriously in Samsung.
I looked forward to find solution in issues, and found out some similar issues, but unfortunately almost no response.
There are related issues blew: issues1 issue2 issue3
It’s really a serious problem!! which influenced many users of our Apps, but because the codes of firebase had been obfuscated, so it’s so hard for us to figure out what the bug is.
I hope you guys who maintain the firebase opensource project could help us troubleshoot the problem, it would be so appreciated!!
Crash log as follows:
Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4200010 (has extras) } in com.google.firebase.iid.aa@7da68d1 at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0 + 1497(LoadedApk.java:1497) at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run + 2(-.java:2) at android.os.Handler.handleCallback + 873(Handler.java:873) at android.os.Handler.dispatchMessage + 99(Handler.java:99) at android.os.Looper.loop + 216(Looper.java:216) at android.app.ActivityThread.main + 7263(ActivityThread.java:7263) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 494(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main + 975(ZygoteInit.java:975)
Caused by java.lang.IllegalArgumentException: Receiver not registered: com.google.firebase.iid.aa@7da68d1 at android.app.LoadedApk.forgetReceiverDispatcher + 1341(LoadedApk.java:1341) at android.app.ContextImpl.unregisterReceiver + 1583(ContextImpl.java:1583) at android.content.ContextWrapper.unregisterReceiver + 672(ContextWrapper.java:672) at com.google.firebase.iid.zzax.onReceive + 41(zzax.java:41) at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0 + 1487(LoadedApk.java:1487) at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run + 2(-.java:2) at android.os.Handler.handleCallback + 873(Handler.java:873) at android.os.Handler.dispatchMessage + 99(Handler.java:99) at android.os.Looper.loop + 216(Looper.java:216) at android.app.ActivityThread.main + 7263(ActivityThread.java:7263) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 494(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main + 975(ZygoteInit.java:975)
Steps to reproduce:
I try hardly to reproduce the crash, but couldn’t. According to the crash log, I guess it probably happen when the network state has changed.
Relevant Code:
Firebase Messaging init code, it’s according to the official document. Firebase Messaging
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top GitHub Comments
Same issue here.Looking forward to response.
Since there haven’t been any recent updates here, I am going to close this issue.
@binbinla if you’re still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.