I have created Passbooks and they are loaded onto my customer's iOS devices. I need to update these Passbooks. According to the Passbook docs you need to use the Apple Push Notification Service (APNS) to trigger a pull from the iOS device in order to update the Passbook. This APNS push consists of a "push token" and a "pass type id." However, the APNS body is to be left empty.
The APNS docs talk about a "device token" needed to send a push notification but make no mention of a "push token."
Is an APNS "device token" the same as a Passbook "push token"? How do I send the Passbook "pass type id" in my APNS push?
It is found in the body of the POST request in a JSON dictionary. For example:
{ "pushToken":"PushTokenFromDevice" }
If you need a PHP implementation, I recommend: APNS PHP
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With