ios 苹果推送通知限制
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6421252/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
apple push notification limitation
提问by BlackEagle
I'm wondering if there is a limit to the number of apple push notifications we can send to users at one time ? in other words, can i send 100,000 push notifications at once using the APNS service?
我想知道我们一次可以发送给用户的苹果推送通知的数量是否有限制?换句话说,我可以使用 APNS 服务一次发送 100,000 个推送通知吗?
回答by Luis Ascorbe
If you are sending multiple notifications to the same device within a short period of time, the push service will send only the last one.
如果您在短时间内向同一设备发送多个通知,推送服务将只发送最后一个。
Look "Some Notifications Received, but Not All" in that documentation.
在该文档中查看“收到了一些通知,但不是全部”。
回答by Eran
Apple's Tech Notewas recently updated to address this question :
Apple 的 Tech Note最近已更新以解决此问题:
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.
使用 APN 没有上限或批量大小限制。iOS 6.1 新闻稿称,自 APNs 成立以来,它已经发送了超过 4 万亿条推送通知。在 WWDC 2012 上宣布,APNs 每天发送 70 亿条通知。
如果您看到吞吐量低于每秒 9,000 条通知,您的服务器可能会受益于改进的错误处理逻辑。
回答by exomic
There's no limit on how much notification you can send to Apple APNS server but reminder to avoid using allot of connection because Apple may ban your IP if he think you are doing a DDOS attack.
您可以向 Apple APNS 服务器发送多少通知没有限制,但提醒您避免使用分配连接,因为如果 Apple 认为您正在进行 DDOS 攻击,他可能会禁止您的 IP。
Also if a user is offline (iPhone out of signal) only the latest push notification will be in saved in apple's APNS server
此外,如果用户离线(iPhone 没有信号),只有最新的推送通知会保存在苹果的 APNS 服务器中
回答by malinois
Yes, you can ! You can also use 20 connexions max for the sending of data.
是的你可以 !您还可以使用最多 20 个连接来发送数据。