Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notification icon is greyed out

I created an image in a 96x96 size, gave padding of 4px on all sides following this information.

Then I used Android Asset Studio to generate icons for different screens. But when I used these in my Notification Builder it is showing a grey box. Where am I doing wrong?

This is my image. Unable to display it here as background is transparent and image is white in color. Please download to see it.

like image 737
Mani Sankar Avatar asked Jul 07 '16 15:07

Mani Sankar


1 Answers

I have the same problem. all my colors are white over transparent png, i still get plain white square on it. I checked the drawable folder have already generated 12 corresponding ic_stat_name.png file and they look as expected. But when i send notification the icon still appear white square.

I found the solution Notification Icon with the new Firebase Cloud Messaging system

I use firebase notification which, according to the above source, will use the launcher icon instead of my expected ic_stat_name.png for notification

like image 68
Simon Ho Avatar answered Nov 15 '22 08:11

Simon Ho