React Native Push Notifications Initialization
In order to send or receive push notifications using our UIKit v4.0.0-beta.7, you would need to register the FCM token for Android and the APN token for iOS.
Follow the steps below to enable push notifications in your project:
1. Setup and Install Firebase and FCM:
Refer to the official documentation to set up and install Firebase and Firebase Cloud Messaging (FCM):
2. Setup Push Notification Certificates in Console:
Android
Follow the FCM Legacy API Migration Guide to get the FCM service account JSON file.
Open the Social Plus Console.
Navigate to Settings → Push Notifications.
Upload the FCM service account JSON file.
iOS
Follow the iOS Push Notification Certificate Setup Guide to get the iOS keychain file with a
.p12
extension.Open the Social Plus Console.
Navigate to Settings → Push Notifications.
Upload the
.p12
file.
3. Passing FCM Token or APN Token to UIKit
Integrate the following code into your React Native app to pass the FCM or APN token to the Social Plus UIKit:
Last updated