How to built and print a scannable Pass for Passbo

2020-07-11 05:18发布

问题:

i can't figure out how to build a OR Code for a Pass that is scannable with the new QR code scanner in iOS7' Passbook App.

When I try to scan a QR Code with a link to a working Pass, the App says it is 'No Pass available for this Card'. Card, hum?!

Any ideas?

回答1:

For a pass to install, the following criteria have to be met:

  • The link must be https
  • The URL must return a valid .pkpass bundle
  • The Content-Type header must be application/vnd.apple.pkpass

Unfortunately, these requirements are not yet documented, but they are mentioned in the WWDC session What's new in Passbook



回答2:

The URL contained in the QR code must return a valid PKPASS file and have the correct MIME type in the HTTP response.

Does that help?