Orchestration SDKs

Getting started with Push notifications in React Native

PingOne Advanced Identity Cloud PingAM React Native

This use case explains how to integrate support for push authentication into your React Native project by using the Push module.

Step 1. Configuring push notification services for React Native

In this step, you configure the platform-specific push notification services that deliver notifications to Android and iOS devices.

For Android devices, you configure Firebase Cloud Messaging (FCM) and create a service account.

For iOS devices, you register a key with Apple Push Notification service (APNs) and verify your app’s push notification capability in Xcode.

Step 2. Configuring AWS for Push notifications in React Native

In this step, you use the credentials created in the previous step to set up Amazon Simple Notification Service (SNS) to route push notification messages to both Android and iOS devices.

You also create a service account and associated access token to provide access to the service to your server.

Step 3. Configuring servers for push notifications

In this step, you configure your server to connect to SNS so that it can send out push notifications.

You also create an authentication journey that registers your client application as an MFA device, and sends out push notifications.

Step 4. Configuring React Native apps for push notifications

In this step, you configure your React Native project to support push notifications on both Android and iOS.

Step 5. Implementing the Push client for React Native

In this final step, you add the code to your application that obtains the unique device token required to ensure push notifications reach the correct device.

You also add code that leverages the Push module to handle the push registration and authentication journey you created earlier.