打开 Apple TV App Store [英] Opening the Apple TV App Store
问题描述
尝试构建 tvOS 应用程序,我的用例之一是能够通过单击按钮直接在 Apple TV App Store 中链接并打开另一个应用程序.有人可以分享一个代码片段来启用此功能吗?
Trying to build a tvOS app and one of the use cases I have is to be able to link off and open another app in the Apple TV App Store directly on a button click. Can someone please share a code snippet to enable this?
推荐答案
我通过检查设备控制台输出发现了这一点.诀窍是使用 com.apple.TVAppStore
方案而不是 itms-apps
.示例(瑞士应用商店):
I have figured this out by examining the device console output. The trick is to use the com.apple.TVAppStore
scheme instead of itms-apps
. Example (Swiss App Store):
com.apple.TVAppStore://itunes.apple.com/ch/app/youtube/id544007664?mt=8
事实上,https
方案也有效,但它还是被转换成了 com.apple.TVAppStore
.
In fact, the https
scheme is also working, but it's then transformed into com.apple.TVAppStore
anyway.
这篇关于打开 Apple TV App Store的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!