In iOS, it’s not easy for our developers to update something like the UI dynamically. We build new version and have to dive into the tedious review process of Apple app store. So there is hybrid app which leverage the web technical stack and web view component.
From App Programming Guide for tvOS
Let’s get started to build a simple client-server app for Apple TV.
On the native side, create a Single View Application for tvOS.
It’s time to start building our native shell.
A simple local server in Node.js or python is also enough for this example. SimpleHTTPServer is good option which is started by command and replace port with real value you want.
python -m SimpleHTTPServer [port]
If you get error “App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.”. The solution is to set Allow Arbitrary Loads (NSAllowsArbitraryLoads) of App Transport Security Settings (NSAppTransportSecurity) to YES in the Info.plist.
In the TVML page, we simply show an alert.
Build and be patient.
The complete project is on GitHub.