2
votes

In short, this is what I am getting on Nougat/Oreo - circle (square on Nougat) instead of app icon:

enter image description here

On KitKat app icons shows itself just fine:

enter image description here

I have set default icon for Firebase correctly/Android manifest:

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

Does anybody know why app icon is never shown from FCM notification on recent Android versions? I'm out of ideas, any tips?

[Edit]: As Google suggests, I wanted to be sure to meet material iconography guidelines, so I tested this icon But still only circle/square is shown. What have I ommited?

2

2 Answers

8
votes

It seems that there's a bug in Firebase version 11.8.0 on Oreo. I was facing the same issue, but when I downgraded to version 11.6.2 it worked like a charm.

0
votes

Icon should be flat (no gradients), white and face-on perspective.

https://material.io/design/iconography/#icon-treatments