PHP Apple iOS Push Notifications: Command2 : Binary Interface and Notification Format
问题 Nowadays, PHP and Apple/iOS Push Notifications with Command 2 has been becoming popular. However not sure, how to prepare the format for same, as per Apple guideline here, How to achieve below packet format: Also would like to know, how to receive Format of error-response packet as mentioned below: At present, I am using below simple format: $msg = // new: Command "1" chr(1) // new: Identifier "1111" . chr(1) . chr(1) . chr(1) . chr(1) // new: Expiry "tomorrow" . pack('N', time() + 86400) //