To view your logs, open the Amazon CloudWatch console and choose Logs from the navigation pane on the left. Depending on which application type you’re using, you might see two log groups for your platform application; generally, one is for successful notifications and the other is for failed notifications. Note: The logs are not visible in the console until messages have been published to an endpoint.

The format of the GCM and APNS logs for SNS Platform Applications is similar to the following:

SNS/<region>/<account_ID>/app/<platform>/<application_name/

“Failed” is appended to the log entry if the delivery was unsuccessful.

The logs provide the time taken (dwellTimeMs), message ID, destination endpoint, the response from the provider, and a status code. For push notifications, a successful publication occurs when Amazon SNS hands off the message to the provider; it does not guarantee that the notification was delivered to the device.

Troubleshoot message failure by looking up the status code with the provider; providerResponse is the exact response message from Apple (APNS) or Google (GCM).