title: Android app getting Push Notification via FCM but not display the message
body: <p>I implemented Push Notification via FCM.
  When the app gets a new notification from my server,
  The Notification Panel strip noticed by the icon which I set in  NotificationCompat.Builder, But the message not preview as a pop up.
  I tried to set priority, style, category, but still the notification not shown.
  When I'm scrolling I can see the notification.</p>
  
  <p>I tried the app on 2 different devices OS (6.0.1 &amp; 5.0.1)
  Also My backend C# solution - both approches not popup the notification - message and notification</p>
  
  <p>Manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.theApp"
  android:versionCode="31"
  android:versionName="0.3.4"  &gt;
  &lt;uses-sdk
      android:minSdkVersion="14"
      android:targetSdkVersion="23" /&gt;
     &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
     &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
     &lt;uses-permission    android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
  
  
      &lt;activity
          android:name="com.theApp.SplashScreen"
          android:screenOrientation="portrait"
          android:label="@string/app_name"
          android:theme="@android:style/Theme.NoTitleBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  
  
      &lt;activity
          android:name="com.theApp.MainView"
          android:windowSoftInputMode="adjustResize"
       android:screenOrientation="portrait"
          android:label="@string/app_name"
          android:theme="@android:style/Theme.Holo.NoActionBar" &gt;
      &lt;/activity&gt;
  
  
      &lt;service android:name=".FirebaseMessagingService"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.MESSAGING_EVENT"/&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  
      &lt;service android:name=".FirebaseInstanceIDService"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.INSTANCE_ID_EVENT"/&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  
  
  &lt;/application&gt;
  
  
  
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>FirebaseMessagingService</p>
  
  <pre><code>package com.theApp;
  import android.app.Notification;
  import android.app.NotificationManager;
  import android.app.PendingIntent;
  import android.content.Context;
  import android.content.Intent;
  import android.support.v4.app.NotificationCompat;
  import com.google.firebase.messaging.RemoteMessage;
  public class FirebaseMessagingService extends    com.google.firebase.messaging.FirebaseMessagingService {
  
  @Override
  public void onMessageReceived(RemoteMessage remoteMessage) {
      showNotification(remoteMessage.getData().get("message"));
  }
  public void showNotification(String message)
  {
      Intent i =new Intent(this,MainView.class);
      i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP ); //FLAG_ACTIVITY_CLEAR_TOP
  
      PendingIntent pendingIntent = PendingIntent.getActivity(this,0,i,PendingIntent.FLAG_UPDATE_CURRENT);
  
      NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
              .setDefaults(Notification.DEFAULT_ALL)
              .setSmallIcon(R.drawable.ic_launcher)
              .setAutoCancel(true)
              .setContentTitle("Title")
              .setStyle(new NotificationCompat.BigTextStyle()
              .bigText(message))
              .setContentText(message)
              .setTicker(message)
              .setVibrate(new long[] { 100, 250, 100, 250, 100, 250 })
              .setPriority(NotificationCompat.PRIORITY_MAX)
              .setContentIntent(pendingIntent)
              .setCategory(NotificationCompat.CATEGORY_PROMO);
  
          NotificationManager manager =   (NotificationManager)getApplicationContext().getSystemService(Context.NOTI      FICATION_SERVICE);
          manager.notify(0,builder.build());
  
     }
  }
  </code></pre>
  
  <p>Backend (C#):</p>
  
  <pre><code>// Data message
    var contentData = new
              {
                  registration_ids = tokens,
                  priority = "high",
                  data = new
                  {                       
                      title = "this is title",
                      body = "this is body"
                  }
              };
  
              // Notification message
              var contentData = new
              {
                  registration_ids = tokens,
                  priority = "high",
                  notification = new
                  {
                      title = title,
                      body = message
                  }
              };
  </code></pre>