Apple push notification php example code 2021
For a long time since Push notification became a thing on iOS, it was very simple to integrate push notification functionality into your iOS app. But recently, the code stopped working when we integrate push notification to new apps.
Weird thing is, the old code works for the old apps. But not for new apps ( not sure if that’s for new app / new Apps using new App store console accounts )
This happened after Apple’s update regarding using HTTP/2 for the push became live.
Now here is the solution.
Important: Now bundle id also needs to be specified as a parameter.