SNS: Getting Started
To get start with Simple Notification Service (SNS) :
- Create a topic -> by visiting Amazon SNS console you can create a topic.
- Create a subscription to the topic
- Publish a message to the topic
- Delete the subscription and topic
SNS with Amplify (and Firebase)
Usage of SNS(adding Push Notifications into their mobile app) with amplify:
- Asynchronous actions, such as when an order is placed through an app, and confirmation or status notifications are sent to the user.
- Scheduled reminders
- Instant messaging, where your app provides two-way communication (i.e., chat).
Notifications
To create your Android platform application in Amazon SNS, you must have credentials from Firebase Cloud Messaging (FCM).
Create a Firebase project on the Firebase website:
-
In the Firebase console, choose your project.
-
In the left navigation pane, choose the gear icon, and then choose Project settings.
-
Choose Cloud Messaging.
-
Under Project credentials, find the Server key. This your FCM project’s API key. Copy it to your clipboard.
Create a platform application in Amazon SNS
-
Open the Amazon SNS console.
-
In the left navigation pane, choose Mobile. Then, choose Push notifications.
-
On the Mobile push notifications page, next to Platform applications, choose Create platform application.
-
On the Create platform application page, under Details, do the following: For Application name, enter the name of your application. For Push notification platform, choose Firebase Cloud Messaging (FCM). Under Firebase Cloud Messaging Credentials, for API key, enter the server key that you copied earlier.
-
(Optional) Set up event notifications and delivery status logging.
-
Choose Create platform application.