I'm using firebase FCM for my app, and I set up my own notification icon in Manifest:
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_custom" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorPrimary" />
In every Android before Oreo that I've tested (API 21, API 23) the icon correctly appears in the push notification view, as a big circle with colorPrimary
background and a white ic_custom
inside.
In Android 8.0 the icon appears as a small circle filled of colorPrimary
, whithout any icon inside.
What I'm missing here?