问题
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