如何在iOS7中构建和打印可扫描的Passbook Pass
问题描述:
我无法弄清楚如何在iOS7的Passbook应用程序中使用新的QR码扫描程序为可以扫描的Pass构建OR代码。
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.
当我尝试使用指向工作通行证的链接扫描QR码,该应用程序表示此卡无法通行证。卡,哼哼?!
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?!
任何想法?
答
传递给安装,必须满足以下条件:
For a pass to install, the following criteria have to be met:
- 链接必须是https
- 该网址必须返回有效的
.pkpass
捆绑包 -
Content-Type
标题必须是application / vnd.apple.pkpass
- The link must be https
- The URL must return a valid
.pkpass
bundle - The
Content-Type
header must beapplication/vnd.apple.pkpass
不幸的是,这些要求尚未记录,但WWDC会议中提到了它们 Passbook中的新功能
Unfortunately, these requirements are not yet documented, but they are mentioned in the WWDC session What's new in Passbook