Android Notification Has A Color Icon Instead Of Being Turned White
My Android app uses Firebase Cloud Messaging for notifications. When notifications come in, the icon isn't turned white like the other icons. I'm using targetSdkVersion 23. I have
Solution 1:
Take a look at the icon in the SVG designer. Have you assigned a colour to it or is it showing white there?
Solution 2:
As suggested by Will Jones, the solution was to use a SVG file and convert it to XML using this: http://inloop.github.io/svg2android/. I then copied the file to android/app/src/main/res/drawable/notification_icon.xml
and deleted the old PNG file.
The icon now renders properly.
Solution 3:
Try this.
then set your resource to white: android:resource="@color/google_white"
Solution 4:
One option is to use the Notification icon generator
Solution 5:
I'm a bit late but try to add this to your manifest
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/notification_icon_color" />
Post a Comment for "Android Notification Has A Color Icon Instead Of Being Turned White"