问题
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