How do I create an Android platform application in Amazon SNS for push notifications?

Last updated: 2020-05-29

I want to create a platform application in Amazon Simple Notification Service (Amazon SNS) to send push notifications to Android devices. How do I do that?

Short Description

To create your Android platform application in Amazon SNS, you need credentials from Firebase Cloud Messaging (FCM). Be sure to add a project at the Firebase console website.

Note: Amazon SNS push notifications are not available in all AWS Regions. For more information, see Using Amazon SNS for user notifications with a mobile application as a subscriber (mobile push).


Copy your FCM project's API key

  1. In the Firebase console, choose your project.
  2. In the left navigation pane, choose the gear icon, and then choose Project settings.
  3. Choose Cloud Messaging.
  4. Under Project credentials, find the Server key. This your FCM project's API key. Copy it to your clipboard.

For more information, see Setting Up FCM/GCM for Push Notifications.

Create a platform application in Amazon SNS

  1. Open the Amazon SNS console.
  2. Open the left navigation pane, expand Mobile, and then choose Push notifications.
  3. On the Mobile push notifications page, next to Platform applications, choose Create platform application.
  4. On the Create platform application page, under Details, do the following:
    Enter an Application name.
    For Push notification platform, choose Firebase Cloud Messaging (FCM).
    Under Firebase Cloud Messaging Credentials, paste the API key that you copied earlier.
  5. (Optional) Set up event notifications and delivery status logging.
  6. Choose Create platform application.

After you create your platform application, there are a few more steps to complete to send push notifications. For more information, see Using Amazon SNS mobile push.