Flutter_local_notifications: Notification icon won't show on flutter build, shows a filled square instead

Created on 18 Mar 2020  路  4Comments  路  Source: MaikuB/flutter_local_notifications

Hello,

The issue I'm facing is pretty simple.

When I run flutter run --release, the notification icon is showing perfectly as you can see here.

image

But when I run flutter build, after the fat apk builds and I install it manually on my device, the issue appears.

image

Do you have any idea on what may cause this? I'm running the latest version of flutter_local_notifications and latest flutter channel master.

Thank you!

Most helpful comment

This happens when you haven't done all of the steps mentioned here, particularly the one around resource shrinking

All 4 comments

This happens when you haven't done all of the steps mentioned here, particularly the one around resource shrinking

This happens when you haven't done all of the steps mentioned here, particularly the one around resource shrinking

Thank you so much, I actually read that but didn't know how to configure that proguard file. Will try again and let you know! Thank you again!

Whilst the Proguard rules need to be setup, it's the other paragraph on making sure your resources are kept by R8 that is the main cause of your problem

Whilst the Proguard rules need to be setup, it's the other paragraph on making sure your resources are kept by R8 that is the main cause of your problem

Thank you so much for your help, mate, everything is fixed now! I really appreciate your time and help! Thank you again! I'll close the issue now.

Was this page helpful?
0 / 5 - 0 ratings