title: Firebase messaging can not receive notification when app close ( React Native )
body: <p>I have an app that using push notification from Firebase.
  In my app i have implement 2 method:</p>
  
  <pre><code>        firebase.messaging().onMessage((message) =&gt; {        
                  senName = message.data.senderName;
                  senUid = message.data.senderUid;
                  const notification = new 
                  firebase.notifications.Notification()
                      .setNotificationId('notificationId')
                      .setTitle(message.data.title)
                      .setBody(message.data.body)
                      .android.setChannelId('channel_id_foreground')
                      .android.setSmallIcon('ic_launcher');
                  firebase.notifications().displayNotification(notification)
          });
  </code></pre>
  
  <p>and </p>
  
  <pre><code>        firebase.notifications().onNotificationOpened((notificationOpen) =&gt; {
              // Get the action triggered by the notification being opened
              const action = notificationOpen.action;
              // Get information about the notification that was opened
              const notification = notificationOpen.notification;             
          });
  </code></pre>
  
  <p>if my app run in foreground and background, it will show notification correctly. If I do nothing and just close app it can not show the notification.</p>
  
  <p>But when in foreground if i tap on the notification it will run to onNotificationOpened method, and then I close app by swipe out, it still show notification normally.</p>
  
  <p>So it just show notification in case close/swipe app if I have taped on the notification before.</p>
  
  <p>Anybody can help me ?</p>