问题标签 [passbook]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1109 浏览

ios - 使用我的应用程序向 Passbook 添加通行证崩溃

我目前正在开发一个应用程序,现在我正在测试一个简单的实现,以便在用户 iPhone 上通过 Passbook 测试。这是按下 UIButton 时调用的方法:

我一直在使用 NSLog 来记录错误,每次在执行PKPass *pass = [[PKPass alloc] initWithData:passData error:&error];. 任何提示将不胜感激。谢谢!

这是崩溃日志:

0 投票
3 回答
622 浏览

passbook - 存折添加href

我想在“背面字段”之一的背面创建一个带有 URL 的存折卡。有谁知道是否可以使用 href 条目,这样我就不会暴露实际的 URL?

例如,在 JSON 记录中,而不是:

做了:

0 投票
1 回答
788 浏览

iphone - 存折的权利文件

我试图在我的应用程序中列出已安装的通行证。我可以很好地添加通行证,但尝试列出我没有在[passLig passes];设备上返回的通行证。奇怪的是我确实在模拟器中得到了它们..

我认为这与权利文件有关。如果我的 passtypeid 是“pass.myapp.boardingpass”,权利文件应该是什么样子?

0 投票
2 回答
5142 浏览

ios - 以编程方式为设备上的 passkit 创建通行证?

我正在尝试找到一种方法,在它收到通过网络放入通行证的信息后,在设备上为其自身生成 passkit 通行证。

有谁知道这是否可以做到/如何做到这一点?

0 投票
1 回答
2254 浏览

ios - 创建存折通行证时出错

我正在制作一个使用 Passbook / PassKit 的 iOS 应用程序。我拥有所有证书、配置和 ID。但是,在我的应用程序的最新版本中,我在尝试向 Passbook 添加通行证时遇到了这两个错误:

和:

这似乎很随机(再次感谢 Xcode 4),但我确信这是我正在做的事情。

我通过连接到服务器(www.PassSlot.com)然后对其进行编辑和下载来创建通行证。这可能与我的互联网连接(例如 HTTP 与 HTTPS 或速度)有关吗?或者它是否与完全不同的东西有关,例如无效的权利文件或类似的东西?

我在 Xcode 中看到了很多错误,但是这个 PassKit 错误对我来说很神秘。任何帮助,将不胜感激!

0 投票
2 回答
633 浏览

ios - 在 PassSlot.com 服务器上获取创建的 PKPass 的序列号

如何从检索通行证的序列号?我使用以下代码生成了通行证:

或者我如何在我的上显示一个通行证,UIViewController或者PKAddPassesViewController如果我有通行证的序列号,因为我可以从以下 API 生成通行证:

我正在为 Passbook Passes 使用 Passslot.com API,有什么建议吗?

0 投票
1 回答
293 浏览

iphone - 存折图标上的闪耀效果

是否可以在 Pass 更新时消除锁屏上显示的 Passbook 图标的光泽?

来自文档:

图标.png

通行证的图标。这会显示在通知和附有通行证的电子邮件中,以及锁定屏幕上。当它显示时,图标会获得光泽效果和圆角。

只有使用“suppressStripShine”顶级键才能去除条带上的光泽。

0 投票
4 回答
3545 浏览

iphone - How can i send a coupon generated form my website to passbook

How can I send a coupon generated form my website to passbook. Actually I send the coupon via email. I would like to provide the possibility to the user to add the coupon to the iphone's passbook.

0 投票
1 回答
168 浏览

passbook - 未显示通行证文件的“添加到存折”选项

我正在开发通行证文件创建应用程序。创建了一个通行证文件,将其附加到邮件中,在安装了 ios6 的 iphone 4s 中打开它。通行证已正确打开,但未显示添加到存折选项。关于需要做什么的任何线索?

0 投票
1 回答
879 浏览

google-chrome - Force a link in Chrome(or other browser) to open in Mobile Safari on IOS6?

I want my customers to be able to download a passbook file. As of this moment Chrome does not support this format and seems to hang on the download.

Is there a way to force a link in Chrome(or any other browser for that matter) to open in Mobile Safari? Or can I otherwise server my customers the passbook file so it is recognised by IOS6?

Right now I am considering either serving them a page with a link that has to be opened in safari or sending them the coupon by email(hoping they use the native email client, since the 3rd party ones dont seem to support passbook either)