3

I am using flutter local notification to show notification on my app locally (not FCM).

I can show the icon of my app on the status bar like this on my Android app

enter image description here

but when I open the Android notification tray, the icon is just white, it doesn't show my icon like this

enter image description here

so how to change icon on Android notification tray using flutter local notification?

currently I am using flutter_local_notifications: ^9.6.1

Alexa289
  • 8,089
  • 10
  • 74
  • 178
  • 2
    for the white icon and gray showing is that the image needs to be transparent background https://romannurik.github.io/AndroidAssetStudio/icons-notification.html#source.space.trim=1&source.space.pad=0&name=ic_stat_example you can test your icon here also since they have same output when using notification also take a look for this also since it the same as you https://stackoverflow.com/questions/45318614/why-is-my-smallicon-for-notifications-always-greyed-out/45318726#45318726 – Arbiter Chil Jun 27 '22 at 04:08
  • @ArbiterChil yup, thats the solution – Alexa289 Jun 27 '22 at 04:19

1 Answers1

0

sometimes its problem with the icon. you need to replace it with some other icon and try. there is site you can use for icon generating and testing the image type. LINK

Shafqat Nadeem
  • 184
  • 1
  • 1
  • 9