How to built and print a scannable Pass for Passbook in iOS7

雨燕双飞 提交于 2019-12-21 13:09:24

问题


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?



来源:https://stackoverflow.com/questions/19097561/how-to-built-and-print-a-scannable-pass-for-passbook-in-ios7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!