简体   繁体   English

使用Amazon SNS时无法接收到iOS设备的推送通知

[英]Not able to receive push notification to iOS devices when using Amazon SNS

I have followed all the steps mentioned in the official documentation . 我已按照官方文档中提到的所有步骤进行操作。 I am able to register device tokens in the application endpoint list successfully. 我能够在应用程序端点列表中成功注册设备令牌。 The message has been published to registered tokens. 该消息已发布到注册令牌。 The delivery status says success (status code 200) in cloud watch console. 交付状态在云监视控制台中显示success (状态代码200)。 But the device isn't able to receive notifications in iOS devices. 但是该设备无法在iOS设备中接收通知。 What could be the reason? 可能是什么原因?

Note : I have enabled notification settings in devices and ios project. 注意 :我已在设备和ios项目中启用了通知设置。

Double check the Message format setting. 仔细检查消息格式设置。 I ran into this same issue and the Cloud Watch console was reporting the message as sent even though I never received the message on my iOS devices. 我遇到了同样的问题,即使我从未在iOS设备上收到消息,Cloud Watch控制台也将消息报告为已发送。 For me, messages were not received when the message format was set to JSON. 对我来说,将消息格式设置为JSON时未收到消息。 Messages were received when the message format was set to Raw. 当消息格式设置为Raw时收到消息。

在此处输入图片说明

就我而言,这是移动网络上的问题,因为我在更改网络后收到了推送通知,请尝试更改用于移动设备的互联网网络,然后再次进行测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM