title: Some devices don't receive FCM notifications
body: <p>I'm having a problem since some of my devices where I'm testing my app don't receive their notifications and it doesn't raise an exception.</p>
  
  <p>The notifications comes from FCM and I'm using a custom service to show them.</p>
  
  <p>MyFirebaseMessaginService.java</p>
  
  <pre><code>static int count = 0;
  @Override
  public void onMessageReceived(final RemoteMessage remoteMessage) {
  
      Log.i("remoteMessage",remoteMessage.toString());
      switch(remoteMessage.getData().get("tipo")){
          case "normal":
              notificacionNormal(remoteMessage);
              break;
          case "imagen":
              notificacionImagen(remoteMessage);
              break;
          case "imagen+url":
              notificacionImagenUrl(remoteMessage);
              break;
      }
      count++;
      //Log.d("prueba",remoteMessage.getData().get("imagen"));
  }
  
  private void notificacionImagenUrl(RemoteMessage remoteMessage) {
      Intent i = new Intent(Intent.ACTION_VIEW);
      i.setData(Uri.parse(remoteMessage.getData().get("url")));
      PendingIntent pendingIntent = PendingIntent.getActivity(this, 100, i, PendingIntent.FLAG_ONE_SHOT);
  
      NotificationManager notificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
      Notification notif = new Notification.Builder(this)
              .setContentIntent(pendingIntent)
              .setContentTitle(remoteMessage.getNotification().getTitle())
              .setContentText(remoteMessage.getNotification().getBody())
              .setSmallIcon(R.mipmap.ic_launcher)
              .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher))
              .setStyle(new Notification.BigPictureStyle().bigPicture(getImagae(remoteMessage.getData().get("imagen"))))
              .build();
      notif.flags |= Notification.FLAG_AUTO_CANCEL;
      notificationManager.notify(count, notif);
  
  }
  </code></pre>
  
  <p>At the moment it only happens in a rooted device with android 6.0.1
  Hope u can help me :)</p>
  
  <p>EDIT:
  The notification HTTP request I send:</p>
  
  <pre><code>"to": "/topics/general",
          "notification" : {
            "title": "title",
            "body": "body",
          },
          "data": {
            "tipo": "normal",
          }
  </code></pre>