- Add new App in Firebase Console, select iOS and follow exactly instruction.
1a. In the
GoogleService-Info.plist
step, after download the file, openxCode
, inProject Navigator
right clickSupporting
folder and selectAdd files to ...
then select the downloaded file. - Following this to create
App Id
,APNs
(.p8) andProvisioning Profile
foriOS
: https://firebase.google.com/docs/cloud-messaging/ios/certs 2a. AddAPN
file (.p8) to Firebase App - Edit
Podfile
, add following belowpod 'Firebase/Core'
:pod 'Firebase/Messaging'
then$ pod install
again - Install
react-native-fcm
module 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