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?
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 beapplication/vnd.apple.pkpass
Unfortunately, these requirements are not yet documented, but they are mentioned in the WWDC session What's new in Passbook
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?
来源:https://stackoverflow.com/questions/19097561/how-to-built-and-print-a-scannable-pass-for-passbook-in-ios7