AWS SNS Push Notifications
AWS Simple Notification Service (SNS) enables sending push notifications to mobile devices through its API.Configuration
Database Setup
Create a new entry in thenotify_providers table with the following settings:
| Field | Value |
|---|---|
channel_type | 9 (Push Notification SNS) |
is_enabled | 1 |
Configuration Fields
Access key for AWS instance
Secret access key for AWS
Region of the AWS instance
Request Format
Sample Request Body
Request Fields
Platform-specific message payload. The key is the platform (e.g.,
GCM for Android, APNS for iOS).The ARN of the endpoint to send the notification to
Message Format for Different Platforms
- Android (GCM/FCM)
- iOS (APNS)
Dependencies
| Package | Version | Description |
|---|---|---|
| @aws-sdk/client-sns | ^3.855.0 | AWS SDK for JavaScript SNS client |