Category Archives: PHP

Sending Push Notification with HTTP2 (and PHP)


In order to send a push notification to an iOS device we must contact Apple servers and delegate them to do the work (go to this page to find more details on the entire process).

Some months ago Apple published a new  protocol that we can use to contact its servers. The previous protocol (the one we used for years) had in fact some problems.  In particular after sending a push, we had to wait at least 1 second for a (possible) Apple response. This is ok if we must send a limited number of pushes, but it is not acceptable when we need to send thousands of that (to send a push to 10.000 users we would wait almost 3 hours, spent almost entirely … waiting and idling!) .

Continue reading Sending Push Notification with HTTP2 (and PHP)