React Native Push Notifications Initialization
Last updated
Last updated
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:
Refer to the official documentation to set up and install Firebase and Firebase Cloud Messaging (FCM):
Follow the FCM Legacy API Migration Guide to get the FCM service account JSON file.
Open the Amity Console.
Navigate to Settings → Push Notifications.
Upload the FCM service account JSON file.
Follow the iOS Push Notification Certificate Setup Guide to get the iOS keychain file with a .p12
extension.
Open the Amity Console.
Navigate to Settings → Push Notifications.
Upload the .p12
file.
Integrate the following code into your React Native app to pass the FCM or APN token to the Amity UIKit: