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

谁说胖子不能爱 提交于 2019-12-24 06:33:37

问题


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. But the device isn't able to receive notifications in iOS devices. What could be the reason?

Note: I have enabled notification settings in devices and ios project.


回答1:


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. For me, messages were not received when the message format was set to JSON. Messages were received when the message format was set to Raw.




回答2:


In my case, it was a problem on the mobile network as I have received the push notifications after changing my network Try changing your internet network used in your mobile and test again



来源:https://stackoverflow.com/questions/45303668/not-able-to-receive-push-notification-to-ios-devices-when-using-amazon-sns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!