title: React Native : messaging().onMessage is not triggered very first time app launched in iOS
body: <p>I want to handle foreground firebase messages.
  But messaging().onMessage is not triggered very first time app launched in iOS. This is working fine in Android.
  Exact scenario is:</p>
  <ul>
  <li>First time launch app : messaging().onMessage not triggered in iOS</li>
  <li>Close and reopen app : messaging().onMessage will trigger</li>
  </ul>
  <pre><code>import { Alert } from 'react-native';
  import messaging from '@react-native-firebase/messaging';
  
  function FCMReadInForeGround() {
    useEffect(() =&gt; {
      const unsubscribe = messaging().onMessage(async remoteMessage =&gt; {
        Alert.alert('A new FCM message arrived!', JSON.stringify(remoteMessage));
      });
  
      return unsubscribe;
    }, []);
  }
  
  export default FCMReadInForeGround;```
  </code></pre>