send push notification from server to ios device using php

For sending the push notification from server to ios device using php than you can use below code function.
Requirement : you need to xyz.pem file that can be generate from your apple account. this certificate is in two type one id development and other is distribute certificate.

Now if you want to send the push notification to multiple devices than replace the try—catch code with below code snippet.

Leave a Reply

Your email address will not be published. Required fields are marked *