我在我的restful Web服务中使用Amazon SNS向我的设备发送推送通知。在日志中,我获得了成功消息以及消息ID。唯一的问题(主要问题)是大多数时候我没有在设备上收到通知。很少收到通知,这种行为是不稳定的。 寻求帮助。
答案 0 :(得分:0)
You get success message and message id because your message was published to the topic. It has nothing to do with the delivery status of those messages, i.e whether it was actually delivered to subscriber endpoints or not.
Since you mentioned that notifications are received intermittently, you should check CloudWatch's NumberOfNotificationsDelivered
and NumberOfNotificationsFailed
metrics which can verify the delivered/failed status of the messages.