title: FCM shows default message than custom message when app is not running
body: <p><strong>Problem:</strong> My FCM code shows different messages to different cases:</p>
  
  <p>Case 1: When app is running it shows the custom notification body</p>
  
  <p>Case 2: When the app is running in the background it shows custom notification body</p>
  
  <p>Case 3: When the app is not running it shows the default message received from FCM than the custom message</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>/* The class extends FirebaseMessagingService() */
  
  override fun onMessageReceived(remoteMessage: RemoteMessage) {
          try {
  /* Some other codes */            
  
              val pendingIntent = PendingIntent.getActivity(this, 0, Intent(), PendingIntent.FLAG_ONE_SHOT)
              val builder = NotificationCompat.Builder(this, "" + R.string.notification_channel_id)
                      .setSmallIcon(R.mipmap.ic_launcher_round)
                      .setContentTitle(remoteMessage.notification!!.title)
                      .setContentText(getString(R.string.custom_message_body))
                      .setAutoCancel(true)
                      .setContentIntent(pendingIntent)
              val manager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
              if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.O) {
                  val channel = NotificationChannel("" + R.string.notification_channel_id, "Alert channel", NotificationManager.IMPORTANCE_DEFAULT)
                  manager.createNotificationChannel(channel)
              }
              manager.notify(0, builder.build())
  
  /* super.onMessageReceived(remoteMessage) was REMOVED to prevent default functions */
          } catch (e: Exception) {
              e.printStackTrace()
          }
      }
  </code></pre>