Apple Push Notification Limits

雨燕双飞 提交于 2019-11-30 20:45:30

The likely problem is that some of the device tokens you are using are invalid (remember that production device tokens are invalid in sandbox environment and vica versa). Sending a notification to an invalid device token will close your socket to the APN servers. All the notifications written to that socket after the invalid one will be discarded until you open a new socket.

You can try to read error responses from Apple to find out which device token is invalid.

You should definitely read the error checking section of the Tech Note that was already mentioned by other people here.

MZimmerman6

There is no limit on the number of users you can send to, you just have to make sure that the size of the message you send it below that limit, which as Kirti stated, is around 2048 bytes.

There is also no limit to how frequently you can send messages, but I would not recommend sending things too often.

mikemike396

Might want to check this out:

There are no caps or batch size limits for using APNs. The iOS 6.1 press release stated that APNs has sent over 4 trillion push notifications since it was established. It was announced at WWDC 2012 that APNs is sending 7 billion notifications daily.

If you're seeing throughput lower than 9,000 notifications per second, your server might benefit from improved error handling logic.

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