I want to create a platform application in Amazon SNS to send push notification messages to Android devices. How do I do that, and what cloud messaging credentials do I need?

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

Note: FCM is Google's replacement for the Google Cloud Messaging (GCM) platform.

  1. In the Firebase console, copy your project's API key to your clipboard. Find it in Settings (the gear icon) > Project Settings > Cloud Messaging > Project credentials, labeled Server key. For more information, see Setting Up FCM/GCM for Push Notifications.
  2. Open the Amazon SNS console.
  3. In the SNS dashboard, under Common actions, choose Create platform application, and then choose the following options:
    For Application name, enter a name for your application.
    For Push notification platform, choose Google Cloud Messaging (GCM).
    For API key, paste the API key (aka "Server key") you copied earlier.
  4. Choose Create platform application.

For more information about using Amazon SNS mobile push, see Amazon SNS Mobile Push High-Level Steps and Using Amazon SNS Mobile Push.

Note: Amazon SNS also supports Baidu Cloud Push for Android devices in China. For more information, see Getting Started with Baidu Cloud Push.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2017-12-21

Updated: 2019-01-16