Problem: My FCM code shows different messages to different cases:
Case 1: When app is running it shows the custom notification body
Case 2:
From the document
When app is in foreground the onMessageReceived always calls.
onMessageReceived
When app is in background the onMessageReceived will be called when the payload only has the data property (it doesn't exist the notification property).
data
notification
Hope it helps!