Which passes can I access in Apple Wallet

我们两清 提交于 2019-12-19 11:11:33

问题


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

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)

Thanks for your help! :)


回答1:


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

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.



来源:https://stackoverflow.com/questions/53449170/which-passes-can-i-access-in-apple-wallet

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