Managing mobile push channels with Amazon Pinpoint - Amazon Pinpoint

Managing mobile push channels with Amazon Pinpoint

Using the console, you can update the credentials that allow Amazon Pinpoint to send push notifications to iOS and Android devices. You can provide credentials for the following push notification services, each of which is supported by an Amazon Pinpoint channel:

  • Apple Push Notification service (APNs)

  • Firebase Cloud Messaging (FCM)

  • Baidu Cloud Push

  • Amazon Device Messaging (ADM)

To update push notification settings
  1. Open the Amazon Pinpoint console at https://console.aws.amazon.com/pinpoint/.

  2. On the All projects page, choose the project that you want to manage push notification settings for.

  3. In the navigation pane, under Settings, choose Push notifications.

  4. Next to Push notifications, choose Edit.

  5. On the Edit push notifications page, you can update your credentials for the following services:

    • APNs – Requires an authentication token signing key or a TLS certificate, which you get from your Apple developer account. For more information, see the next section, Managing APNs Settings.

    • FCM – Requires either a Web API Key (also referred to as an API_KEY or server key) or Token Credentials, which you get from the Firebase console. For more information about obtaining FCM credentials, see Credentials in the Firebase documentation and for more information on Token Credentials, see Migrate from legacy FCM APIs to HTTP v1 in the Firebase documentation.

    • Baidu Cloud Push – Requires an API key and a secret key, which you get from your Baidu Cloud Push project.

    • Amazon Device Messaging – Requires the OAuth credentials (Client ID and Client Secret) from your Amazon Developer account. For more information, see Obtain credentials in the Amazon Device Messaging developer documentation.

  6. When you finish, choose Save.

Managing APNs settings

On the Push notifications settings page for APNs, you can authorize Amazon Pinpoint to send push notifications to your iOS app by providing information about your APNs key or certificate:

Key

A private signing key used by Amazon Pinpoint to cryptographically sign APNs authentication tokens. You obtain the signing key from your Apple developer account.

If you provide a signing key, Amazon Pinpoint uses a token to authenticate with APNs for every push notification that you send. With your signing key, you can send push notifications to APNs production and sandbox environments.

Unlike certificates, your signing key doesn't expire. You only provide your key once, and you don't need to renew it later. You can use the same signing key for multiple apps. For more information, see Communicate with APNs using authentication tokens in Xcode Help.

Certificate

A TLS certificate that Amazon Pinpoint uses to authenticate with APNs when you send push notifications. An APNs certificate can support both production and sandbox environments, or it can support only the sandbox environment. You obtain the certificate from your Apple developer account.

A certificate expires after one year. When this happens, you must create a new certificate, which you then provide to Amazon Pinpoint to renew push notification deliveries. For more information, see Communicate with APNs using a TLS certificate in Xcode Help.

To manage APNs settings
  1. For Default authentication type, choose Key credentials or Certificate credentials to manage the settings for that type. Amazon Pinpoint uses this default setting for every APNs push notification that you send by using the console. You can override the default setting when you send a message programmatically by using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type.

    • If you choose Key credentials, provide the following information from your Apple developer account. Amazon Pinpoint requires this information to construct authentication tokens.

      • Key ID – The ID that's assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section.

      • Bundle identifier – The ID that's assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app.

      • Team identifier – The ID that's assigned to your Apple developer account team. This value is provided on the Membership page.

      • Authentication key – The .p8 file that you download from your Apple developer account when you create an authentication key. Apple allows you to download your authentication key only once.

    • If you choose Certificate credentials, provide the following information:

      • SSL certificate – The .p12 file for your TLS certificate. You can export this file from Keychain Access after you download and install your certificate from your Apple developer account.

      • Certificate password – If you assigned a password to your certificate, specify it here.

      • Certificate type – Select the type of certificate to use.

  2. For Select APNs channels to enable, choose the channels to enable.

  3. When you finish, choose Save.