Junaid
Junaid

Reputation: 381

Passbook with geofence

Is it possible to preprogram passbook passes into my application and then they activate when the user enteres a specific geofence? So like when they enter the geofence a notification will come up on their phone and when they tap on it, it takes them to passbook where it adds the pass. Language- Swift Xcode 6.3

Upvotes: 0

Views: 732

Answers (1)

PassKit
PassKit

Reputation: 12581

Short answer, yes it is possible.

Use CoreLocation to trigger a local push notification on entry to the geofence, and then in response to the local push present the pass using the PKAddPassesViewController. To cope with more than 20 locations, you can have your app poll your server on significant location changes and download the 20 closest locations.

Upvotes: 1

Related Questions