Updating Passes Automatically

One of the key features of Passbook is the capability to automatically update passes without the use of an app. This is an overview of the feature, since implementing it requires a server capable of building and updating passes and is beyond the scope of this chapter to fully illustrate.

If updating a pass will be supported, the pass.json needs to specify a webServiceURL and an authenticationToken. When the pass is first added, Passbook will call the webServiceURL to register the device and pass with the server, and will provide a push token for use in the next step.

When information related to a pass is updated on the server, the server needs to notify the device with the pass that an update is available. To do ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.