FCM Crash:Bad notification posted from package
- 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:
- push an message to old version app
- upgrade new app from google play store
- click the message push to device before
- app crash
updates?
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.
Other References - https://github.com/OneSignal/OneSignal-Android-SDK/issues/263
@sillysachin could you provide your code for handling the incoming notification?
I've opened an issue with this crash here: https://issuetracker.google.com/issues/119839527
@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.
I'm not using vector images and still got this crashes.
I'm not using vector images and still got this crashes.
me too
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.
I still face this problem. How can I solve it ?