I used Amazon Simple Notification Service (Amazon SNS) to send a push notification and the platform application’s deactivated.
Short description
Amazon SNS can send push notification messages directly to apps on mobile devices. You can create a platform application to send notification messages to mobile endpoints, whether directly or through subscriptions to a SNS topic. This registers your application's push notification service such as Apple Push Notification service (APNs) to SNS with the provided credentials. SNS uses these credentials to communicate with the push notification services.
If the push notification service can't communicate with SNS, then it returns feedback to Amazon. Based on the feedback from push notification service providers, SNS might deactivate the platform application.
Resolution
Reactivate the deactivated platform application
Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshooting errors for the AWS CLI. Also, make sure that you're using the most recent AWS CLI version.
Complete the following steps:
-
To verify that the platform applications deactivated, run the following get-platform-application-attributes command:
aws sns get-platform-application-attributes --platform-application-arn arn:aws:sns:us-west-2:123456789012:app/GCM/MyApplication
Note: Replace arn arn:aws:sns:us-west-2:123456789012:app/GCM/MyApplication with your applications Amazon Resource Name (ARN).
If the output for the preceding command is Enabled: False, then the platform applications deactivated.
-
To activate the platform application, run the following set-platform-application-attributes command:
aws sns set-platform-application-attributes --platform-application-arn arn:aws:sns:us-west-2:123456789012:app/GCM/MyApplication --attributes Enabled=true
Note: Replace arn arn:aws:sns:us-west-2:123456789012:app/GCM/MyApplication with your applications ARN.,
Check the platform application's certificate and credentials
Verify that the status of the platform applications certificate is valid. Make sure that you don't use the APNS sandbox certificate for an APNS production application. Check whether the platform application credentials are revoked, not valid, or expired.
If the preceding troubleshooting steps don't resolve your issue, then contact AWS Support. Make sure that you include four or five SNS push notification failure logs. To get SNS push notification failure logs, see How do I access Amazon SNS topic delivery logs for push notifications?