This bug was ever resolved? I’m doing an app with push notifications and the icon that appear on my pixel 4 is a white square.
I’ve all this icons on root folder:
IconNotificationDefault-ldpi.png 18 × 18
IconNotificationDefault-mdpi.png 24 × 24
IconNotificationDefault-hdpi.png 36 × 36
IconNotificationDefault-xhdpi.png 48 × 48
IconNotificationDefault-xxhdpi.png 72 × 72
IconNotificationDefault-xxxhdpi.png 96 × 96
I tried 8bit and 32 bits icons (both with alpha channel).
ojnab
February 13, 2020, 9:54am
2
I had this bug too. Adding the following to the android build settings fixed it for me:
applicationChildElements = { -- Firebase notification icon bug fix [[\<meta-data android:name="com.google.firebase.messaging.default\_notification\_icon" android:resource="@drawable/corona\_statusbar\_icon\_default"/\>]] }
I’m using onesignal, but tried anyway but also failed.
Thanks anyway.
yosu
February 17, 2020, 7:51am
4
I am not using onesignal.
I think i had similar issues. Try having these icon files. The “v11” sizes are the same as the non-v11 icons.
IconNotificationDefault-hdpi.png
IconNotificationDefault-hdpi-v11.png
IconNotificationDefault-ldpi.png
IconNotificationDefault-mdpi.png
IconNotificationDefault-mdpi-v11.png
IconNotificationDefault-xhdpi.png
IconNotificationDefault-xhdpi-v11.png
IconNotificationDefault-xxhdpi.png
IconNotificationDefault-xxhdpi-v11.png
IconNotificationDefault-xxxhdpi.png
IconNotificationDefault-xxxhdpi-v11.png
IconNotificationDefault-xxxxhdpi.png
IconNotificationDefault-xxxxhdpi-v11.png
tried but still no success, thanks anyway. the funny thing is that i receive notifications from other apps and some have the same problem than I, but some shows the correct icon from that brand.
The only Icon that works is the “ic_onesignal_large_icon_default.png” that appears on the right of the body message, but that small left icon is always a white square.