user1209216
user1209216

Reputation: 7914

Firebase notification icon not shown on Android 5.0 and newer

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?

Upvotes: 2

Views: 2560

Answers (2)

Fakhar Iqbal
Fakhar Iqbal

Reputation: 4069

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

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

Upvotes: 0

Grzegorz Matyszczak
Grzegorz Matyszczak

Reputation: 722

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.

Upvotes: 8

Related Questions