shivam gupta
shivam gupta

Reputation: 141

RemoteServiceException: can't deliver broadcast on All OnePlus devices having oreo and pie

I have been seeing this crash in Crashlytics only for OnePlus manufactured devices(one, 3, 5,5T, 6, 6T) having oreo and pie from past 3-4 months. It didn't occur for previous android versions.

Fatal Exception: android.app.RemoteServiceException: can't deliver broadcast
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1844)
   at android.os.Handler.dispatchMessage(Handler.java:106)
   at android.os.Looper.loop(Looper.java:193)
   at android.app.ActivityThread.main(ActivityThread.java:6892)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

I have looked different posts in stackoverflow, rechecked all the code related to Firebase Messaging and updated to latest version of firebase too but no luck. If anyone faced the same crash, please help. Thanks in advance.

Edit 1: Possible cause may be, I am putting notification icon in mipmap instead of drawable. https://forums.oneplus.com/threads/app-notification-provokes-continues-system-ui-crashes-and-possible-corruption-of-the-os.713575/

Android Oreo Notification Crashes System UI

https://issuetracker.google.com/issues/69109923

But If I put notification in drawable then how can I fix the resource id so that I won't face the issue mentioned below again(for fixing the resource id I moved notification icon to mipmap from drawable). Recent release of gradle ignores public.xml:

How to fix: android.app.RemoteServiceException: Bad notification posted from package *: Couldn't create icon: StatusBarIcon

Upvotes: 8

Views: 2572

Answers (0)

Related Questions