quickstart-android icon indicating copy to clipboard operation
quickstart-android copied to clipboard

FCM Crash:Bad notification posted from package

Open cym4u opened this issue 8 years ago • 10 comments

  • Android device: Samsung(SM-G610F,SM-G950F,Galaxy A5(2016),Galaxy A3(2016),SM-G955F....)
  • Android OS version: 7.0
  • Google Play Services version: 11.0.4
  • Firebase/Play Services SDK version: 11.0.4

crash log:

Fatal Exception: android.app.RemoteServiceException: Bad notification posted from package com.xxx.xxx: Couldn't expand RemoteViews for: StatusBarNotification(pkg=com.xxx.xxx user=UserHandle{0} id=0 tag=FCM-Notification:126882220 key=0|com.xxx.xxx|0|FCM-Notification:126882220|10173: Notification(pri=0 contentView=null vibrate=null sound=content://settings/system/notification_sound defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE semFlags=0x0 semPriority=0)) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1813) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6776) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)

Steps to reproduce:

  1. push an message to old version app
  2. upgrade new app from google play store
  3. click the message push to device before
  4. app crash

cym4u avatar Dec 17 '17 15:12 cym4u

updates?

tamtom avatar Dec 25 '17 14:12 tamtom

I am seeing 1000s of crashes in Crashlytics as we have monthly release cycle. Crashes when user clicks notification to app navigation when app has updated.

sillysachin avatar Jan 06 '18 04:01 sillysachin

Other References - https://github.com/OneSignal/OneSignal-Android-SDK/issues/263

sillysachin avatar Jan 06 '18 04:01 sillysachin

@sillysachin could you provide your code for handling the incoming notification?

kroikie avatar Apr 24 '18 18:04 kroikie

I've opened an issue with this crash here: https://issuetracker.google.com/issues/119839527

Pulimet avatar Nov 22 '18 18:11 Pulimet

@sillysachin could you provide your code for handling the incoming notification?

I solved it by use of standard images instead of vector drawables. It was issue of Notification not being able to handle vector images.

sillysachin avatar Nov 23 '18 06:11 sillysachin

I'm not using vector images and still got this crashes.

Pulimet avatar Nov 23 '18 17:11 Pulimet

I'm not using vector images and still got this crashes.

me too

JeffZane avatar Dec 25 '18 07:12 JeffZane

I'm not using vector images and still got this crashes.

me too

Same. And I am getting this only on Samsung and Huawei device.

hayton avatar Jan 03 '19 07:01 hayton

I still face this problem. How can I solve it ?

pengfeiliu123 avatar Jan 07 '19 07:01 pengfeiliu123