nodekit-io / nodekit-darwin

{NK} NodeKit is the universal, open-source, embedded engine that provides a full ES5 / Node.js instance inside desktop and mobile applications for macOS, iOS, Android, and Windows. [Swift 2.3 Darwin]
http://nodekit.io
Apache License 2.0
22 stars 4 forks source link

Will it work in tvOS? #2

Open norlin opened 8 years ago

norlin commented 8 years ago

The question is because tvOS does not support UI/WK WebViews (officially).

So, for my purposes, I need to have a browser js environment in tvOS app. Is it possible to have it with NodeKit + some browser environment nodejs module?

guybarnard commented 8 years ago

The WebView UI is a challenge on tvOS. The non-UI portions using JavaScriptCore should work fine, which allows headless cross-application development.

If there is interest, we can add UITextView to NKElectro on tvOS which uses WebKit behind the scenes to parse HTML. It's far from a full browser environment but paired with JavaScriptCore might solve some basic dashboard type applications for stylized Text.

Until Apple open up WKWebView on tvOS, more complex applications would require using JavaScript to call native UI functions, or use a WebGL port such as phoboslab/Ejecta in combination with NodeKit.

NodeKit is agnostic to the choice of front end framework, so using WebGL universally is a full scope solution.

norlin commented 8 years ago

Thanks. Anyway I decided to use https://github.com/andreasgal/dom.js for my app...

guybarnard commented 8 years ago

Nice project with good forethought -- IIRC rarer to see ES6 features being used back in 2011. Thanks for the update.