title: React-native with Firebase FCM not working
body: <p>I have done the following changes:</p>
  <p>How is send notifications, using firebase-admin and getting successful result:</p>
  <pre><code>admin.messaging().sendToDevice(
          &quot;token as string&quot;,
          {
          notification: {
              title: 'title here',
              body: 'body here'
              }
          },
          {
              priority: &quot;high&quot;,
              contentAvailable: true,
              timeToLive: 2419200
          });
  </code></pre>
  <p>React-native code, this is when the application is in the foreground:</p>
  <pre><code>useEffect(() =&gt; {
      checkToken().then((token) =&gt; {
        console.log(token);
        // write to db
      });
      const unsubscribe = messaging().onMessage(async (remoteMessage) =&gt; {
        console.log(remoteMessage);
      });
      return unsubscribe;
    }, []);
  </code></pre>
  <p>I have the GoogleService-Info.plist file in the ios folder, I have uploaded the APNs in the firebase console + teamid + appid.</p>
  <p>Following changes in AppDelegate.m:</p>
  <pre><code>#import &lt;Firebase.h&gt;
  ....
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
  [FIRApp configure];
  </code></pre>
  <p>I am not receiving any notification while the app runs in the foreground, there must be something wrong with the way I am sending (probably I have the wrong options) or, what I have in react-native is wrongly configured, not sure. I am trying to do it only for IOS for now.</p>
  <p>Any info or solution would be helpful.</p>