- Newest
- Most votes
- Most comments
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:
- Create an application in AWS End User Messaging Push
- Enable push notification channels using the console, API, SDK, or AWS CLI
- For Android, obtain FCM credentials
- 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
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 4 years ago
