我可以在Apple Wallet中访问哪些通行证 [英] Which passes can I access in Apple Wallet

查看:140
本文介绍了我可以在Apple Wallet中访问哪些通行证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iOS开发的新手,想使用PassKit库处理一个小项目.

I am new to iOS development and want to work on a small project using the PassKit library.

经过大量搜索(Apple文档,stackoverflow)之后,我似乎无法清楚地了解我的问题的可能答案:

After a lot of searching (Apple docs, stackoverflow) I just can't seem to get a clear understanding of possible answers to my question:

是否可以访问我未创建的通行证?"

"Is it possible to access passes that I did not create?"

现在,我不是在谈论与付款相关的通行证,例如银行卡等.我只想概述一下活动门票,交通通行证等.

Now, I'm not talking about payment related passes like bank cards etc. I simply want an overview of things like event tickets, transportation passes and so on.

有什么办法可以做到这一点? (当然要征得用户的同意)

Is there any way to achieve this? (with the users consent of course)

感谢您的帮助! :)

推荐答案

简单的答案是否,您的应用无法访问未创建的通行证";这可能是违反隐私的行为.

The simple answer is "No, Your app cannot access passes that it did not create"; this would be a potential privacy violation.

更详细的答案是,您的应用程序可以访问未创建的通行证,只要在您的应用程序的com.apple.developer.pass-type-identifiers权利中指定了通行证类型标识符即可.此权利的目的是允许一个应用访问同一开发人员的另一应用创建的通行证.

The more detailed answer is that your app can access passes it did not create as long as the pass type identifiers are specified in the com.apple.developer.pass-type-identifiers entitlement for your app. The purpose of this entitlement is to allow one app to access passes created by another app from the same developer.

此权利还可以使应用访问通过其他方法添加到钱包的通行证;例如,航空公司应用可以通过在航空公司网站上签入来访问添加到钱包中的通行证.

This entitlement can also allow an app to access passes that were added to the wallet through some other method; For example, an airline app could access a pass that was added to the wallet through checking in on the airline's web site.

标题中问题的答案是您可以访问创建的通行证".

The answer to the question in your title is "You can access passes that you created".

没有任何应用程序可以发出的请求,该请求将导致向用户发出允许普通通行证访问的请求.

There is no request that an app can make that will result in a request to the user to allow general pass access.

这篇关于我可以在Apple Wallet中访问哪些通行证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆