26

I'm wondering if there is a limit to the number of apple push notifications we can send to users at once?

Can I send 100,000 push notifications at once using the APNS service?

James Risner
  • 5,451
  • 11
  • 25
  • 47
BlackEagle
  • 814
  • 2
  • 12
  • 13

4 Answers4

17

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.

https://developer.apple.com/library/content/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG23

Look "Some Notifications Received, but Not All" in that documentation.

hvaughan3
  • 10,955
  • 5
  • 56
  • 76
Luis Ascorbe
  • 1,985
  • 1
  • 22
  • 36
  • 1
    Yes thats true as the last one replaces the ones before. My case is that i have a big delay in receiving the push notification when sending to a huge number of phones. dunno if i should blame apple or my code. – BlackEagle Jun 28 '11 at 05:12
  • If **malinois** is right (i think so), you can make a loop to control the sending of notifications to 20 devices every 3 seconds for example – Luis Ascorbe Jun 28 '11 at 08:12
  • @LuisAscorbe if my device network is turned off for a while, then I just want to know how much notifications APNS Server can hold? If My Server not sending multiple notifications at a time. – Gurjit Singh Nov 11 '20 at 13:15
11

Apple's Tech Note was recently updated to address this question :

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.

Eran
  • 387,369
  • 54
  • 702
  • 768
6

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.

Also if a user is offline (iPhone out of signal) only the latest push notification will be in saved in apple's APNS server

exomic
  • 466
  • 6
  • 16
1

Yes, you can!
You can also use 20 connections max for the sending of data.

James Risner
  • 5,451
  • 11
  • 25
  • 47
Michaël
  • 6,676
  • 3
  • 36
  • 55
  • 8
    may I know the reference web page about the max connection limit. thank you – situee Jul 17 '12 at 03:39
  • 1
    i think there's a limit... can you please tell me why the need of the 20 connection if one connection can handle all the push? is it just to speed up the sending? or anything else? Thank you – LolaRun Jan 15 '13 at 13:14
  • @LolaRun if your service has more than 1 running instance(behind load banacer for example) each instance can hold 1 connection – ruX Mar 22 '16 at 11:28