question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Receiver not registered: com.google.firebase.iid

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TOPWNcommented, Apr 9, 2020

Same issue here.Looking forward to response.

0reactions
google-oss-botcommented, Oct 28, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does I'm getting "Service not registered" exception, even ...
Dev's who are facing issue on this problem i have checked a lot with com.google.firebase:firebase-bom:26.1.1 i think so some dependencies ...
Read more >
Receive messages in an Android app - Firebase - Google
In some situations, FCM may not deliver a message. This occurs when there are too many messages (>100) pending for your app on...
Read more >
Push Notifications - Android
In the Firebase Console, navigate to Settings and select the Cloud Messaging tab. You'll need your Sender ID to register for push notification...
Read more >
Configure Firebase push messages with Maven Android project
google.firebase.auth.FirebaseAuth is not linked. Skipping initialization. D/FirebaseApp﹕ Initialized class com.google.firebase.iid.FirebaseInstanceId.
Read more >
Registration | Cast - Google Developers
The Default Media Receiver does not allow you to provide any styling to the media player UI, and uses a provided constant as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found