Skip to content

Integrating AWS End User Messaging with Amplify (React Native)

0

I’m developing a React Native application using AWS Amplify for the backend. While reviewing the Amplify documentation for In-App Messaging, I noticed that Amazon Pinpoint will no longer accept new users as of May 20 and will be fully retired on October 30, 2026(https://docs.amplify.aws/react-native/build-a-backend/add-aws-services/in-app-messaging/).

The documentation still outlines steps to integrate notifications through Pinpoint, but the guidance now recommends using AWS End User Messaging for push notifications and SMS.

Since my project already uses Amplify, I would like to know:

Is there a simpler or recommended way to integrate AWS End User Messaging directly with Amplify for React Native, similar to the current in-app messaging setup?

Are there any upcoming Amplify features, SDKs, or sample projects that will provide native support for End User Messaging?

If not, what is the best practice to implement push notifications and SMS using End User Messaging alongside Amplify?

Any guidance or recommended approach would be greatly appreciated.

Thank you!

1 Answer
0

For React Native applications using AWS Amplify, you can integrate AWS End User Messaging Push for push notifications.

Push notifications for React Native apps are sent using Firebase Cloud Messaging (FCM) for Android devices and Apple Push Notification Service (APNs) for iOS devices. The integration process involves setting up these services and connecting them with AWS End User Messaging Push.

Currently, to implement push notifications with AWS End User Messaging Push alongside Amplify, you would need to:

  1. Create an application in AWS End User Messaging Push
  2. Enable push notification channels using the console, API, SDK, or AWS CLI
  3. For Android, obtain FCM credentials
  4. For iOS, create an app ID on the Apple Developer portal and obtain APNs tokens

To send push notifications, you can use the AWS End User Messaging Push API, which supports sending transactional push notifications to specific device identifiers through FCM, APNs, Baidu Cloud Push, and Amazon Device Messaging (ADM).

While there isn't currently a direct integration between Amplify and AWS End User Messaging Push similar to the previous Pinpoint integration, you can use the AWS SDK to implement the necessary functionality in your React Native application.

For in-app messaging specifically, you can still use Amplify UI components. Although Amplify In-App Messaging can be used as a standalone JavaScript library, you can integrate it with Amplify UI, which supports React Native, by installing the necessary packages:

npm add @aws-amplify/ui-react @aws-amplify/ui-react-notifications

Then wrap your application root component with Amplify UI's Higher-Order Component to enable the in-app messaging functionality.

As for upcoming features or SDKs that provide native support for End User Messaging with Amplify, there is no specific information available in the current documentation. The best approach for now is to implement the AWS End User Messaging Push API directly using the AWS SDK while continuing to use Amplify for other aspects of your application.
Sources
Receiving push notifications in your application - AWS End User Messaging Push
Sending a message - AWS End User Messaging Push
Integrate your application - React Native - AWS Amplify Gen 2 Documentation

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.