- Add new App in Firebase Console, select iOS and follow exactly instruction.
1a. In the
GoogleService-Info.pliststep, after download the file, openxCode, inProject Navigatorright clickSupportingfolder and selectAdd files to ...then select the downloaded file. - Following this to create
App Id,APNs(.p8) andProvisioning ProfileforiOS: https://firebase.google.com/docs/cloud-messaging/ios/certs 2a. AddAPNfile (.p8) to Firebase App - Edit
Podfile, add following belowpod 'Firebase/Core':pod 'Firebase/Messaging'then$ pod installagain - Install
react-native-fcmmodule thenrnpm link react-native-fcm - Following this https://github.com/evollu/react-native-fcm#shared-steps and this https://github.com/evollu/react-native-fcm#xcode-post-installation-steps
- Write Component to handle Push Notifications:
# main.js