I am triggering the notifications from the server using FCM using notification
parameter looks like this:
"notification": { "title": "Test Title", "body": "Test Body" }
The notification's title & body is displayed as expected when the app is in background while the notification is being triggered. But it doesn't show the body if the app is in foreground while the notification is being sent.
The one triggered when the app was in foreground. The body is missing here.
The one triggered when the app was in background - expected behavior
They both were triggered using the same code/endpoint/data etc. but at different times. Only difference of these two is that one was triggered when the app was in background and the other wasn't.
Do you think this is related to Firebase API request or something to be configured on mobile app side?
Tested on Android 8.1.0