title: Push notification received while the app is in the foreground is different from push notification received when the app is in background
body: <p>I have implemented FCM push notifications in an android app.</p>
  
  <p>While I am logged in to the app. I get the notification in the form that I am expecting as below.</p>
  
  <p><a href="https://i.stack.imgur.com/JFSpE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JFSpE.png" alt="enter image description here"></a></p>
  
  <p>When the app is in background I receive the json response instead as below.</p>
  
  <p><a href="https://i.stack.imgur.com/FnE4J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FnE4J.png" alt="enter image description here"></a></p>
  
  <p>Following is the code I have added in onMessageRecieved()</p>
  
  <pre><code>NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
              .setContentTitle("App")
              .setContentText(messageBody)
              .setAutoCancel(true)
              .setSound(defaultSoundUri)
              .setSmallIcon(R.mipmap.ic_launcher)
              .setContentIntent(pendingIntent)
              .setStyle(new NotificationCompat.BigPictureStyle()
                      .bigPicture(bitmap))/*Notification with Image*/;
  </code></pre>
  
  <p>How can I get the notification in the same manner in both cases.</p>
  
  <p>Any help will be appreciated thank you</p>