Passbook with geofence

689 views Asked by At

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

1

There are 1 answers

2
PassKit On BEST ANSWER

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.