'Firebase Push Notification icon ignoring color

I have the following in AndroidManifest.xml:

<meta-data
    android:name="com.google.firebase.messaging.default_notification_icon"
    android:resource="@drawable/ic_notification" />
<meta-data
    android:name="com.google.firebase.messaging.default_notification_color"
    android:value="@color/orange" />

@drawable/ic_notification is partially white, partially transparent. @color/orange is set in values/colors.xml as #F25826.

Yet the push notification icon is always shown in white, ignoring the @color/orange set. Why is that?

I am not using NotificationCompat, I simply followed the Firebase documentation. I tried using mipmap instead of drawable, but it didn't help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source