![delivery status delivery status](https://cdn.slidesharecdn.com/ss_thumbnails/delivery-status-notification-delay-120728040317-phpapp02-thumbnail-4.jpg)
![delivery status delivery status](https://onlinehelp.learnflex.net/Delivery_Provider_Statuses.png)
Open any one of the log streams by clicking on it to see the individual log entries in that stream. You should see one or more log streams that Amazon SNS writes to. You will see the log group created by Amazon SNS for the Delivery Status feature amongst other log groups that you may have.Ĭlick on the log group to open it up. Step 1: Navigate to the Amazon CloudWatch console and click Logs to view the Logs section.
Delivery status how to#
Therefore, we recommend publishing a few messages before proceeding to see how to capture information from these logs, and creating Amazon CloudWatch Metrics that can help you visualize events through graphs or generate alarms based on thresholds.Ĭapturing Metrics through Amazon CloudWatchĪfter you are done publishing a few messages in the application, here is how you would capture Amazon CloudWatch Metrics: That is, it does not create the Amazon CloudWatch Logs group until the first successful or failed delivery attempt occurs after enabling the feature for the application. Please note that, Amazon SNS follows a “lazy creation” policy for the Amazon CloudWatch Logs group. In order to view this information, you will need to navigate to Amazon CloudWatch Logs. Once the feature is enabled, Amazon SNS will start logging successful and failed message delivery attempts. The attributes should include a SuccessFeedbackRoleArn, a FailureFeedbackRoleArn and a SuccessFeedbackSampleRate. In the above example, we indicate that the application (with ARN arn:aws:sns:us-east1:123456789000:app/APNS/myApp) wants this feature activated by setting application-level attributes in the SetPlatformApplicationAttributesRequest object and assigning it to the application via the setPlatformApplicationAttributes method.
![delivery status delivery status](https://thumbs.dreamstime.com/z/order-delivery-status-post-parcel-package-tracking-vector-icons-processing-bar-ship-transit-signs-express-courier-app-168093921.jpg)
Sns.setPlatformApplicationAttributes(spar) SetPlatformApplicationAttributesRequest spar = new SetPlatformApplicationAttributesRequest() Īttributes.put("SuccessFeedbackSampleRate", "30") You can also enable the Delivery Status feature for your application via the Amazon SNS APIs available via the AWS SDK. This enables the Delivery Status feature for your application.Įnabling the Delivery Status feature via Amazon SNS APIs Save this configuration by clicking the Save Configuration button.
![delivery status delivery status](https://docs.oracle.com/cd/E53547_01/opera_5_04_03_core_help/delivery_status_codes.gif)
In this example, we will choose 100 percent for the sampling rate. Successful deliveries can be sampled based on a percentage you define, whereas 100 percent of failed deliveries are logged to Amazon CloudWatch Logs. You can also choose the sampling rate for successful deliveries on this window. This will allow Amazon SNS to gain write-access to Amazon CloudWatch Logs on your behalf.Īfter the IAM role assignment succeeds, you will see that the fields for IAM Role for Success Feedback and IAM Role for Failure Feedback are automatically filled with the ARN for the appropriate IAM role. Step 3: On the IAM page, click the Allow button. Step 2: In the Delivery Status window, click the Create IAM Roles button.Īfter clicking the Create IAM Roles button, you should see the IAM page. Then, from the Application Actions drop-down menu, choose the Delivery Status option. Step 1: Navigate to the application that you want to enable this feature for. Here is how you can set up this feature for your application via the Amazon SNS console: In this post, we will see how to enable the Delivery Status feature through the Amazon SNS console and the Amazon SNS APIs followed by how to capture metrics via Amazon CloudWatch Metrics based on information generated by your application after this feature is activated.Įnabling the Delivery Status feature through the Amazon SNS console This information is captured in an Amazon CloudWatch Log group that is created automatically by Amazon SNS when this feature is enabled via the Amazon SNS console or via the Amazon SNS APIs. It also provides other important information such as dwell times in Amazon SNS.
Delivery status windows#
Today we released a new feature for Amazon SNS that enables developers to collect feedback on successful and unsuccessful delivery attempts of their messages to mobile push notification platforms (Apple (APNS), Google (GCM), Amazon (ADM), Windows (WNS and MPNS) and Baidu).