Installation Guide:
-
Install Package -
npm install --save @react-native-firebase/app
-
Android and IOS Setup - https://rnfirebase.io
-
Android Enabling Multidex - https://rnfirebase.io/enabling-multidex
-
Autolinking & rebuilding
# Android apps
npx react-native run-android
# iOS apps
cd ios/
pod install --repo-update
cd ..
npx react-native run-ios
-
Install Firebase Cloud Messaging Package - npm install --save @react-native-firebase/messaging
-
Install push notification package -
npm install --save react-native-push-notification
-
Install PushNotificationIOS package -
npm install --save @react-native-community/push-notification-ios
-
Add Capabilities for IOS a. Background Mode capability and tick Remote Notifications. b. Push Notifications capability
-
Send Push Notification From Firebase