Up until very recently, when my app sent notifications to Androids, the receiving phone would get our custom icon in the notification bar, and when pulling it down, it would show what was in the "message" part under "data" (we use json messages). Now all of a sudden, many times it shows the generic Android icon, and then it shows the "title" part under notification. Did something recently change in Firebase Messaging -- say since early November?
Up until very recently, when my app sent notifications to Androids, the receiving phone would get our custom icon in the notification bar, and when pulling it down, it would show what was in the "message" part under "data" (we use json messages). Now all of a sudden, many times it shows the generic Android icon, and then it shows the "title" part under notification. Did something recently change in Firebase Messaging -- say since early November?
It turns out that the problem happened when notification message files were changed from Legacy to HTTP v1. The old messages were "data" messages, but the new ones were changed to "notification" messages. This caused OnMessageReceived (which builds my notifications and sets the IMMUTABLE flag correctly) not to be called when the app was in the background. By taking out:
"notification": {"title": "My TITLE", "body": ""},
from the JSON message file, OnMessageReceived would execute in all cases, and the app started working perfectly again. Posting this in case this happens to someone else.