Flutter, App's Push Notification in Background is crashed after install "flutter build appbundle", but using debug, Noti working correctly

-1

As I mentioned in title, Push Notification Alarm is crashed when app is in inactive ( but when I debug it, it work fine.) So, I checked with adb logcat. and next is that.

I/[SignBoard]NotificationListener/u0: [NotificationListener.java:187:onNotificationPosted()-EventServiceThread] onNotificationPosted(StatusBarNotification(pkg=com.example.blabla user=UserHandle{0} id=0 tag=E731782D55E9 key=0|com.example.blabla|0|E731782D55E9|10275: Notification(channel=fcm_fallback_notification_channel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0xff39ef33 backgroundColor=0x00000000 vis=PRIVATE))) 2020-09-08 19:13:34.532 5224-5224/? D/MmsNotificationListenerService: onNotificationPosted 2020-09-08 19:13:34.533 3796-3796/? E/Icon: Unable to load resource 0x7f060074 from pkg=com.example.blabla android.content.res.Resources$NotFoundException: Drawable com.example.blabla:drawable/ic_door_closed with resource ID #0x7f060074 Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_door_closed.xml from drawable resource ID #0x7f060074 at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:876) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:655) at android.content.res.Resources.getDrawableForDensity(Resources.java:891) at android.content.res.Resources.getDrawable(Resources.java:830) at android.graphics.drawable.Icon.loadDrawableInner(Icon.java:360) at android.graphics.drawable.Icon.loadDrawable(Icon.java:313) at android.graphics.drawable.Icon.loadDrawableAsUser(Icon.java:424) at com.lge.signboard.notificationlistener.LGStatusBarNotification.getIcon(LGStatusBarNotification.java:165) ...

But, when I use AndroidStudio for debug, the push act correct like below image. enter image description here

For helping understand, next is my icon files directory.

enter image description here

Could you let me know what problem is, please?

Thank you all for reading.

android
firebase
flutter
push-notification
asked on Stack Overflow Sep 8, 2020 by Mike Min • edited Sep 8, 2020 by Frank van Puffelen

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0