6

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?

1 Answer 1

6
  • The push token is given to your server when the device registers.

It is found in the body of the POST request in a JSON dictionary. For example:

{ "pushToken":"PushTokenFromDevice" }

  • The pass type id is embedded with the certificate used to generate the push notification to Apple's Push Notification Service

If you need a PHP implementation, I recommend: APNS PHP

1
  • Thanks! The cert signing part is what I missed. I have the right cert and everything looks good.
    – keithcelt
    Nov 30, 2012 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.