title: FCM android onmessagereceived not called
body: <p>I have implemented FCM in the app. Other firebase features working fine i.e. uploading to firebase storage and firebase real time messaging. But when I send push notification 1st time to the device, it shows successfully sent notification, but on messagereceived not called. then immediately when i sent another push notification, it shows not registered. and it always not registered then after. </p>
  
  <pre><code>public class MyFirebaseMessagingService extends FirebaseMessagingService {
  
  @Override
  public void onMessageReceived(RemoteMessage remoteMessage) {
      Log.d("myLog", "From: " + remoteMessage.getFrom());
      Log.d("myLog", "Notification Message Body: " + remoteMessage.getNotification().getBody());
  }
  }
  </code></pre>
  
  <p>app.gradle:</p>
  
  <pre><code>apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>project.gralde:</p>
  
  <pre><code>classpath 'com.google.gms:google-services:3.1.0'
  </code></pre>
  
  <p>manifest:</p>
  
  <pre><code>&lt;service android:name=".MyFirebaseMessagingService"&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>Device token is refreshed correctly, when ever i clear data and reopen app, it immediately print new device token. </p>