Why is my push platform application getting deactivated?

Lesedauer: 2 Minute
0

Whenever I send a push notifications using Amazon Simple Notification Service (Amazon SNS) the platform application gets deactivated.

Short description

Amazon SNS can send push notification messages directly to apps on mobile devices. For example, you might create a platform application to send notification messages to mobile endpoints, whether directly or through subscriptions to a topic. This registers your application's push notification service, such as Apple Push Notification service (APNs) and Google Cloud Messaging (GCM), with Amazon SNS, using the provided credentials. These credentials are used to communicate with the push notification services.

If the push notification service can't communicate with Amazon SNS, it then returns feedback to Amazon. Based on the feedback from push notification service providers, SNS might disable the platform application.

Resolution

Some common reasons why push platform application are deactivated:

The application was manually deactivated

  • You can validate by using the following AWS CLI command get-platform-application-attributes as follows:

    aws sns get-platform-application-attributes --platform-application-arn arn:aws:sns:us-west-2:123456789012:app/GCM/MyApplication
  • If the output for the above command is Enabled: False, then call this AWS CLI command set-platform-application-attributes to activate the Platform Application as follows:

    aws sns set-platform-application-attributes --platform-application-arn arn:aws:sns:us-west-2:123456789012:app/GCM/MyApplication --attributes Enabled=true

    Note: If you receive errors when running the AWS CLI commands, make sure that you're using the most recent version of AWS CLI.

The application's credentials have expired, aren't valid, or are revoked

  • Verify the status of the certificate. Check whether the credentials are revoked, not valid, or expired.
  • Check your present certificate. Confirm that you aren't using the APNS Sandbox certificate for an APNS Production application.

If these steps don't resolve the issue, then contact AWS Support and share four or five SNS Push Notification failure logs.

Note: For more information on Amazon CloudWatch logs, see Configuring message delivery status attributes using the AWS Management Console.

Related information

GetPlatformApplicationAttributes

SetPlatformApplicationAttributes

AWS OFFICIAL
AWS OFFICIALAktualisiert vor 9 Monaten