title: I can't receive push notifications when my app is running and if it is closed i receive the notifications
body: <p>I'm working with push notifications with firebase. I can receive notifications
  when my app is closed or in the background but I am not receiving notifications
  when my app is running please help me so I can get notifications even when my app is running</p>
  
  <pre><code>  @Override
  public void onMessageReceived(RemoteMessage remoteMessage) {
      shownotifeaction(remoteMessage.getNotification().getBody());
  }
  
  public void shownotifeaction(String message) {
      PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, Splash_Img.class), 0);
      Notification notification = new NotificationCompat.Builder(this)
              .setSmallIcon(R.drawable.ic_stat_name)
              .setContentTitle("Porwal")
              .setContentText(message)
              .setContentIntent(pi)
              .setAutoCancel(true)
              .build();
  
  
      NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
      notificationManager.notify(0, notification);
  }
  </code></pre>
  
  <p>}</p>
  
  <pre><code>    &lt;service
          android:name=".MyFirebaseMessagingService"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.INSTANCE_ID_EVENT"/&gt;
          &lt;/intent-filter&gt;
      &lt;/service&gt;
  
      &lt;meta-data
          android:name="com.google.firebase.messaging.default_notification_icon"
          android:resource="@drawable/ic_stat_name" /&gt;
      &lt;meta-data
          android:name="com.google.firebase.messaging.default_notification_color"
          android:resource="@color/colorAccent" /&gt;
  </code></pre>