IOS Push Notification Not Received Using (FCM) in Device in React Native (0.62.0)

I'm working in react native (0.62.0). I'm stuck in React Native Push Notification (Using FCM).

Here are the steps i'm doing.

Get a Device Token from FCM. (npm install react-native-firebase) using this plugin.

import firebase from "react-native-firebase";

async getToken() {

let fcmToken = await AsyncStorage.getItem('fcmToken');  
console.log('TestA',fcmToken);
if (!fcmToken) {
  fcmToken = await firebase.messaging().getToken();
  console.log('FCM Token', 'fcmToken');
  if (fcmToken) {
    // user has a device token
    await AsyncStorage.setItem('fcmToken', fcmToken);
  }
}

}

IOS Device is not Receiving Push Notification.

Here Is Plugin: react-native-push-notification

react-native-fcm

I have Created All the Certification required for push notification App

Bundle id Push Notification (Development , Production Certificate, Auth Key).

Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown 路 Publish articles on custom domain 路 Gain readership on day zero 路 Automatic GitHub backup and more

No Comments Yet