title: Can't create push notification
body: <p>I have a problem with push notification in Android Studio.
  I send to my device the notification from the firebase web console. I receive the notification because i see the body in the logcat, but i can't create the push notification.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>public class MyFirebaseMessagingService extends FirebaseMessagingService {
  public MyFirebaseMessagingService() {
  }
  
  String TAG = "";
  
  @Override
  public void onMessageReceived(RemoteMessage remoteMessage) {
      if (remoteMessage.getNotification().getBody() != null) {
          Log.e("FIREBASE", "Message Notification Body: " + remoteMessage.getNotification().getBody());
          sendNotification(remoteMessage);
      }
  }
  
  private void sendNotification(RemoteMessage remoteMessage) {
  
      NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this, "channel_id_0")
              .setSmallIcon(R.drawable.ic_launcher_foreground)
              .setContentTitle(remoteMessage.getNotification().getTitle())
              .setContentText(remoteMessage.getNotification().getBody())
              .setPriority(NotificationCompat.PRIORITY_DEFAULT);
  
      NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
  
      // notificationId is a unique int for each notification that you must define
      notificationManager.notify(1, mBuilder.build());
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>My user-permission:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/&gt;
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  </code></pre>
  
  <p>My service declaration:</p>
  
  <pre><code>&lt;service
          android:name=".MyFirebaseMessagingService"&gt;
          &lt;!--android:enabled="true"
          android:exported="true"--&gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.firebase.MESSAGING_EVENT"/&gt;
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p></p>
  
  <p><a href="https://i.stack.imgur.com/Rpes6.png" rel="nofollow noreferrer">notification text is ok</a></p>