Reputation: 7914
In short, this is what I am getting on Nougat/Oreo - circle (square on Nougat) instead of app icon:
On KitKat app icons shows itself just fine:
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
Reputation: 4069
Icon should be flat (no gradients), white and face-on perspective.
https://material.io/design/iconography/#icon-treatments
Upvotes: 0
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