iPhone 6 doesn't receive push notification

强颜欢笑 提交于 2019-12-05 19:49:29

Have you added the new iPhone6 to your Development Provisioning Profile? Then download and install the profile again. This solved it for me.

Not sure if this could be it but I had strange issues receiving notifications also and then I read the following from the Apple documentation:

The content-available property with a value of 1 lets the remote notification act as a silent notification. For a silent notification, take care to ensure there is no alert, sound, or badge payload in the aps dictionary

I noticed your aps dictionary had all 3 (alert sound and badge in it) The docs went on to say that apple may not deliver the message if this is the case.

Removing those worked for me.

Thanks Wayne

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