Broadcast Notification

Hi Experts

How will broadcast a single message to multiple device using APNS API. I checked at a time we can send a message to single device . So please help me on this that how will broadcast message.

Regards Saumya

There is no broadcast option using the APNs interface. Notifications are sent to a single token at a time. If you have a large number of devices you need to send a notification to, you can use the features of HTTP/2 like multiple channels, and use multiple connections to multiple APNs hosts to optimize your one-by-one push requests.

To optimize sending a large number of notifications in a short time, make sure you are fairly balanced across multiple hosts. We suggest the following:

  • open multiple connections from your hosts to APNs hosts, and keep them open. Do not close the connections after a push request
  • spread out the time between opening each connection for a few seconds
  • use uncached DNS requests to make sure you are getting a fresh set of APNs hosts every time
  • do not create a static list of IP addresses for reconnections, always use a fresh DNS query
  • once you create the connections maintain them as long as possible

You can open several thousand connections at a time to an APNs host to parallelize your requests.

Broadcast Notification
 
 
Q