I know the following.
1. FCM Payload comes in the onMessageReceived() when the app is the foreground. 
2. Payload comes in the Intent Extras when the app is in the background. But only when the user clicks the notification. What if the user jumps directly in the app without interacting with the notification?
How to handle the payload in that scenario.

The payload I'm sending. 

```html
{
 "registration_ids" : ["FCM Token Here"],
 "notification" : {
     "body" : "Testing FCM Message Handling",
     "title": "This is a test to handle FCM Messages inside the App"
 },
 "data" : {
     "body" : "Testing FCM Message Handling",
     "title": "This is a test to handle FCM Messages inside the App",
     "sender_member_id" : "63",
     "sender_name" : "Chiranjeev Jain"
 }
}
```

The onMessageReceived() implementation.

```html
public void onMessageReceived(RemoteMessage remoteMessage) {
        super.onMessageReceived(remoteMessage);
        //Here notification is recieved from server
        try {
            // TODO: Handle Incoming Message
            String fcmMessageTitle = remoteMessage.getData().get("title");
            String fcmMessageBody = remoteMessage.getData().get("body");
            String fcmSenderMemberID = remoteMessage.getData().get("sender_member_id");
            String fcmSenderName = remoteMessage.getData().get("sender_name");
            Toast.makeText(this, fcmMessageTitle + "\n" + fcmMessageBody + "\n" + fcmSenderMemberID + "\n" + fcmSenderName, Toast.LENGTH_SHORT).show();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
```