title: Not getting push notification on lollipop android devices using FCM
body: <p>I am using FCM for Push notification and it works fine with pre-lollipop devices but not getting notification in lollipop.</p>
  
  <p>Here is my code.</p>
  
  <p>(Manifest)services:- </p>
  
  <pre><code>&lt;service android:name=".fcmlistenerservices.MyInstanceIDListenerService"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.firebase.INSTANCE_ID_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
          &lt;service android:name=".fcmlistenerservices.MyFcmListenerService"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  </code></pre>
  
  <p>This is service to display notification:</p>
  
  <pre><code>public class MyFcmListenerService extends FirebaseMessagingService {
      @Override
      public void onMessageReceived(RemoteMessage message){
          String from = message.getFrom();
          Map data = message.getData();
          Log.d("MyTag", "From: " + from);
          Log.d("MyTag", "Notification Message Body: " + data.get(""));
          //logic to display notification
          //Toast.makeText(MyFcmListenerService.this,""+message.getData(),Toast.LENGTH_LONG).show();
          Log.d("Firebase : ", "Notification from firebase: "+data.get("message"));
          sendNotification((String) data.get("message"));
      }
  }
  </code></pre>