10

I found this answer on stackoverflow which says it is possible to create .pkpass from iOS app but I really didn't find any code or anything to create that.

I also checked on Apple developers page about Passbook and Passes. I know how to create static .pkpass by using bundle using this link.

But what I want to do is dynamically create passes from my iOS app. Each passes will have different contents.

I searched everywhere online. Most of the answers are in favor of creating web-server for generating .pkpass

Any guidance will be appreciated. I am fairly new to iOS development so I might not know obvious things. Thanks.

Pooja
  • 2,417
  • 20
  • 39

1 Answers1

0

It can be done, but due to the fact that the pass needs to be cryptographically signed, and that Apple documentations states this should be done on a server, you may have trouble getting such an app into the app store. The standard approach is to build an API (or use a third party service) to create the passes on demand and download them onto the device.

PassKit
  • 12,231
  • 5
  • 57
  • 75