I had to ask around a bit, but this seems to be what's happening. When you send a message from the Firebase Console, it is sent as a Notification. If the Android app is active, your
FirebaseMessagingService subclass is invoked and can handle the message as it sees fit. If the Android app is not active, a default handling is invoked that determines what icon to display automatically.
If you have a server sending the messages, you can send them as a data message and it'll always be your own code displaying the notification (and thus determining its formatting). For more information see how our
quickstart app handles notifications (you'll want to use to use
msg.getData() to handle data messages). Also have a look at
this issue, which describes (what I think is) the same.
If this is not what you mean, can you post the minimal code that shows how you're sending the messages and how your app is handling them?
puf