Home > OS >  Firebase Notification icon is gray
Firebase Notification icon is gray

Time:12-01

Although I did this solution which is in stackoverflow, the icon still the same.

    <meta-data   android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@mipmap/ic_launcher" />

here top icon:

enter image description here

and when I slide top bar, I see this: enter image description here

Where is the problem? I also use this website for creating transparent icon: enter image description here

icon here: enter image description here

CodePudding user response:

Have you tried changing the manifest line to this:

<meta-data   android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_stat_ic_launcher" />

From your screenshots it appears you only have the ic_stat_ic_launcher files in different resolutions.

If you want to use the mipmap/ic_launcher file, you'll need to add the different size files to the other mipmap folders (in the same way you have the mipmap/launcher_icon.png files), otherwise it probably won't find which file to use

CodePudding user response:

The icon to be used for notifications must be white-colored and with transparent background else it will show a grey-colored box.

You can check out this Notification Logo

  • Related