Sophia Sophia - 1 month ago 28
Android Question

Grey square as notification icon using Firebase notifications

I am attempting to integrate Firebase Cloud Messaging into my android app. But when the app is in the background or closed, Firebase notification is displayed with grey square icon instead of my application's launcher icon.

How could I make the notification icon to be my application logo, without implementing Firebase server API and sending data messages?

Answer

Its a bug in firebase. If your app is in foreground and notification is sent from Firebase Console, you will get the grey icon.

Workaround is: Send notifications via API and not from Console.

Comments