简体   繁体   English

如何将Apple pay集成到手表应用程序中?

[英]How to integrate Apple pay into watch app?

I want to access the Watchkit API for Apple pay and Healthkit data, to accomplish payment from my watch app.我想访问 Apple pay 和 Healthkit 数据的 Watchkit API,以从我的手表应用程序完成付款。

Is this possible, or is there any apple document where the API access limitation is described?这可能吗,或者是否有任何苹果文档描述了 API 访问限制?

WatchKit does not yet support the Apple Pay API, but you could use handoff to open a specific ViewController on the iPhone where the user can use Apple Pay. WatchKit 尚不支持 Apple Pay API,但您可以使用 Handoff 在 iPhone 上打开一个特定的 ViewController,用户可以在其中使用 Apple Pay。

https://developer.apple.com/handoff/ http://www.raywenderlich.com/96741/watchkit-tutorial-with-swift-tables-glances-and-handoff https://developer.apple.com/handoff/ http://www.raywenderlich.com/96741/watchkit-tutorial-with-swift-tables-glances-and-handoff

Update: WatchKit does now support Apple Pay.更新:WatchKit现在支持苹果支付。 Documentation 文档

You can access HealthKit data by opening your iPhone app in the background using openParentApplication:reply: and accessing it from there.您可以通过使用openParentApplication:reply:在后台打开您的 iPhone 应用程序并从那里访问它来访问 HealthKit 数据。

There's no Apple Pay API for WatchKit at this time.目前没有用于 WatchKit 的 Apple Pay API。 The documentation that shows this fact is simply that no such API is currently in the documentation.显示此事实的文档只是文档中当前没有此类 API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM