Interacting with Passes in an App

Passes can exist completely outside the confines of an app—in fact, a custom app is not needed at all for the life cycle of a Pass. However, there are use cases in which a custom app is appropriate for getting new passes, handling updates to existing passes, and removing existing passes. The sample app demonstrates how to perform all these tasks.

Preparing the App

Several steps need to be completed to prepare the app to interact with Passbook. First ensure that PassKit.framework has been added to the project, and import PassKit/PassKit.h in any classes that need to use the PassKit classes. Next return to the iOS Provisioning Portal and click the App IDs item in the left menu. Click the button with a plus sign ...

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.