Re:Apple allows hot code push for JS downloaded and run by W...
by seanalltogether on Thursday October 02, 2014 @03:30PM
(#8402584)
Last I read, Apple was limiting javascript performance in UIWebViews compared to what was available in Safari, is this still the case?
[ Parent
| on HN ]
Re:Apple allows hot code push for JS downloaded and run by W...
by Sidnicious on Thursday October 02, 2014 @03:32PM
(#8402596)
No. In iOS 8 apps can use WKWebView, which is accelerated.
Re:Apple allows hot code push for JS downloaded and run by W...
by seanalltogether on Thursday October 02, 2014 @03:50PM
(#8402702)
Wow, thanks, I can't believe I missed reading about this until now. This framework looks really promising
Re:Apple allows hot code push for JS downloaded and run by W...
by dunham on Thursday October 02, 2014 @05:04PM
(#8403088)
Unfortunately, due to sandboxing rules added around beta4, WKWebView doesn't allow access to any local files, making it nearly worthless for hybrid apps, ebook viewers, etc.
The only workaround that I know of is to run a webserver on a background thread and point the WKWebView at it. Hopefully Apple fixes this in a future release.
Also, WKWebView doesn't work with NSURLProtocol, which a lot of companies use to implement encryption and dynamic (e.g. database-sourced) web pages.
Re:Apple allows hot code push for JS downloaded and run by W...
by Jare on Thursday October 02, 2014 @06:21PM
(#8403424)
My distant but intense interest in the future of hybrid apps just took a nosedive. Do you know if any of the major players (Phonegap, CocoonJS, etc) implement the web server approach? It doesn't seem too difficult, but it sure must be a hassle.
Re:Apple allows hot code push for JS downloaded and run by W...
by simonh on Thursday October 02, 2014 @04:14PM
(#8402840)
The only reason it wasn't allowed until now was security. With iOS 8 cross process communication improvements, the JITed JavaScript engine can be used by third party apps in a segregated fashion without sacrificing security.
Re:Apple allows hot code push for JS downloaded and run by W...
by carloscm on Thursday October 02, 2014 @04:51PM
(#8403026)
Is this also true when using JavaScriptCore directly? Or do you only get JIT compilation in the context of a web view?