Is it possible for an Apple Watch app to interact with Apple TV?

蹲街弑〆低调 提交于 2020-08-08 06:21:47

问题


I'm searching for a solution or even a clue about the possibility of sharing data, sending signal etc, between Apple Watch app and Apple TV app.
In my case, I have an app that makes some calculations using the Apple Watch and I want those calculations to have an influence on the Apple TV app interface.

If not - Can I achieve it? via:

Apple Watch -> iPhone -> Apple TV?

Thanks

Ariel


回答1:


I'm not sure if there's a way to directly communicate between Apple TV and Apple Watch, but you can definitely go from Apple Watch -> iPhone -> Apple TV and vice versa.

From Apple Watch to iPhone you can use WatchConnectivity.framework. From iPhone to Apple TV you can use Bonjour network.

We are using Bonjour network, setup with CocoaAsyncSocket, in one of our apps and it works great.



来源:https://stackoverflow.com/questions/44039609/is-it-possible-for-an-apple-watch-app-to-interact-with-apple-tv

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