title: onNotificationOpened and getInitialNotification not getting triggered react-native-firebase
body: <p>I have used <strong>react-native-firebase</strong> in my react native project[android platform] to show the app notification. With this library i am able to show the notification when the app is in the foreground/background/closed state.</p>
  
  <p>According to the react native firebase documentation the <strong>onNotificationOpened</strong> should be triggered when the app is opened by the notification tap. However this is not happening in my case, the <strong>onNotificationOpened</strong> method is never called and <strong>getInitialNotification</strong> method always gets a null value.</p>
  
  <p>I am also using <strong>react-native-splash-screen</strong> library to display the splashscreen.</p>
  
  <p>Here's my code from <strong>App.js</strong> >> <strong>componentDidMount()</strong></p>
  
  <pre><code> firebase.messaging().requestPermission()
              .then(() =&gt; {
  
                  const myAppChannel = new firebase.notifications.Android.Channel('my-channel',
                      'my Channel', firebase.notifications.Android.Importance.Max)
                      .setDescription('my channel');
                  firebase.notifications().android.createChannel(myAppChannel);
  
  
                  this.messageListener = firebase.messaging().onMessage((message) =&gt; {
  
                      const {title, body} = message.data;
                      const notificationDisplay = new firebase.notifications.Notification()
                          .setNotificationId('notificationId')
                          .setTitle(title)
                          .setBody(body)
                          .setData({
                              key1: 'value1',
                              key2: 'value2',
                          }).setSubtitle('notification')
                          .setSound('default');
                      notificationDisplay
                          .android.setChannelId('my-channel')
                          .android.setSmallIcon('ic_launcher')
                          .android.setAutoCancel(true).android.setPriority(firebase.notifications.Android.Priority.High);
                          firebase.notifications().displayNotification(notificationDisplay);
                  });
  
  
                  this.notificationOpenedListener = firebase.notifications().onNotificationOpened((notificationOpen: NotificationOpen) =&gt; {
                      //never gets called
                      console.log('onNotificationOpened was triggered on notification taped');
  
                  });
  
              })
              .catch(error =&gt; {
                  // User has rejected permissions
                  console.log("user rejected");
                  console.log(error);
              });
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /&gt;
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  
      &lt;application
          android:name=".MainApplication"
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme"&gt;
  
          &lt;service android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
          &lt;service android:name="io.invertase.firebase.messaging.RNFirebaseInstanceIdService"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.firebase.INSTANCE_ID_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
          &lt;service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" /&gt;
  
          &lt;meta-data
              android:name="com.google.firebase.messaging.default_notification_channel_id"
              android:value="@string/default_notification_channel_id" /&gt;
  
          &lt;activity
              android:name=".SplashActivity"
              android:label="@string/app_name"
              android:launchMode="singleTop"
              android:theme="@style/SplashTheme"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".MainActivity"
              android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
              android:exported="true"
              android:label="@string/app_name"
              android:launchMode="singleTop"
              android:windowSoftInputMode="adjustResize" /&gt;
          &lt;activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /&gt;
      &lt;/application&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong>: Problem was caused by the <em>react-native-splash-screen</em> library, I was able to fix this after removing the <em>react-native-splash-screen library</em> from the android project. However i am still not sure how i can make this work when using the <em>react-native-splash-screen</em>.</p>