Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the number of persistent connections to APNS allowed?

I am trying to write a server side code for sending push notifications for my applications. As per Apple recommendation, I am planning to retain the connection and send push notification as required. Apple also allows opening and retaining multiple parallel connections for sending push notifications. "You may establish multiple, parallel connections to the same gateway or to multiple gateway instances." For this purpose I would like to maintain a connections pool. My question is what is the limitation of connections pool, or the number of persistent connections with APNS can I maintain? Thanks for anticipated help.

like image 933
DonDyck Avatar asked Jan 31 '12 21:01

DonDyck


People also ask

How many bytes we can send to Apple Push Notification server?

Apple Push Notification service (APNs) refuses a notification if the total size of its payload exceeds the following limits: For Voice over Internet Protocol (VoIP) notifications, the maximum payload size is 5 KB (5120 bytes). For all other remote notifications, the maximum payload size is 4 KB (4096 bytes).

How do I fix WhatsApp push notifications on iPhone?

Make sure that your notification settings are turned on in both your WhatsApp and iPhone settings. If you've verified that your notification settings are correct and you're still not receiving notifications, this is likely an issue with your connection or iOS.

How long does APNs certificate last?

Was this article helpful? APN certificate(s) downloaded from Apple only have one year validity from the date it was created.

Why am I not getting notifications on my iPhone?

Change alert styles Go to Settings and tap Notifications. Select an app under Notification Style. Under Alerts, choose the alert style that you want. If you turn on Allow Notifications, choose when you want the notifications delivered—immediately or in the scheduled notification summary.


1 Answers

Don't know if you're going to get a precise answer to this one. As large and dynamic a system as APNS is, it behooves Apple to be ambiguous about such a number; it gives them liberty to change it at will. I found a similar vagueness here.

  • From this discussion it appears a rule of thumb is 15 connections max

One suggestion is to have an open-ended pool where new connections can be created until they start being refused. Just an idea.

like image 87
calebds Avatar answered Oct 21 '22 16:10

calebds