[Android][3521] Notification Icon wrong while App is open

During the 64bit Testing we changed our noptification icons. They are now in the AndroidResources/res folder and are used by adding 

applicationChildElements = { [[\<meta-data android:name="com.google.firebase.messaging.default\_notification\_icon" android:resource="@drawable/notification\_icon"/\>]] }, } 

to our build.settings file.

That works, whenever the app is closed or in the background. However, sometimes you receive a notification, while you have the app open. In this case, instead of the notification icon we selected, a “Warning Sign” (I added a screenshot) is displayed.

We’re using Corona 2019.3521 right now.

There are several ways to deal with this issue:

  1. legacy way: add IconNotificationDefault-[“ldpi”, “mdpi”, “hdpi”, “xhdpi”, “xxhdpi”, “xxxhdpi”].png to your root directory.

  2. Add res/drawable*/corona_statusbar_icon_default.png

This will replace the exclamation shipped by default.

Thank you. I will try as soon as possible.

Sorry this took longer to test.

Replacing the corona_statusbar_icon_default.png icon works. Now the right icon is displayed, but it has the wrong background color. To explain, when sending the notification from a backend server, i can choose the background color. It is blue in our case. For the normal notifications it has the blue background, but while the app is open the background is light grey, as it was for the “Warning sign”.

It’s not really a priority, but it would be nice, if that color was used, if it is specified.