Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Andrew Grieve
On Fri, Sep 5, 2014 at 2:40 PM, Shazron shaz...@gmail.com wrote: I figure I will write this all up before the official release of iOS 8 next week (probability high) and everyone asking about support. It has stalled because the WKWebView cannot load files using the file:// protocol since iOS

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Homer, Tony
The alternative is to run a local web server, which works great. However, this will open up a can of worms possibly with Apple, I'm not sure. FWIW, the Intel XDK Legacy iOS container runs a local web server that all content is served from. Lots of apps have been published - no problem with

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Andrew Grieve
Tony - is the code for that available anywhere? On Wed, Oct 8, 2014 at 7:48 AM, Homer, Tony tony.ho...@intel.com wrote: The alternative is to run a local web server, which works great. However, this will open up a can of worms possibly with Apple, I'm not sure. FWIW, the Intel XDK Legacy

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Homer, Tony
@cordova.apache.orgmailto:dev@cordova.apache.org Subject: Re: [iOS 8] Status of WKWebView work Tony - is the code for that available anywhere? On Wed, Oct 8, 2014 at 7:48 AM, Homer, Tony tony.ho...@intel.commailto:tony.ho...@intel.com wrote: The alternative is to run a local web server, which works great

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Shazron
I'll release the local webserver soon as a plugin, it was just a proof of concept. It should work with existing Cordova versions as well, but will not have a way to secure access to the local web server from other (background) running apps. On Wed, Oct 8, 2014 at 4:10 AM, Andrew Grieve

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread purplecabbage
What about other requests from the network? Is the server accessible to network peers? Sent from my iPhone On Oct 8, 2014, at 10:26 AM, Shazron shaz...@gmail.com wrote: I'll release the local webserver soon as a plugin, it was just a proof of concept. It should work with existing Cordova

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Shazron
Not sure if it's only bound to local requests from localhost. Since it's for experimental reasons, I'm not too concerned for security. I'm still opting for the WKWebView loadFileURL way as the option we use for our users, once that is out. On Wed, Oct 8, 2014 at 10:31 AM, purplecabbage

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Brian LeRoux
I have some questions! What happens when you background / does it keep running? Since you're running localhost, how do you deal with 1 app (random port collision possible?) On Wed, Oct 8, 2014 at 10:33 AM, Shazron shaz...@gmail.com wrote: Not sure if it's only bound to local requests from

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Shazron
1. Does it run in the background? No. Unless we put up some variables in Info.plist, which are reserved for certain types of apps (navigation apps, etc) 2. Local web server port collision? This will be specified in the plugin in a preference. On Wed, Oct 8, 2014 at 11:46 AM, Brian LeRoux

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Shazron
But for 2, there is a chance of port collision still of course, nothing we can do about that. The ideal way is to get a random port, but this requires more Cordova integration which I am trying to avoid (since we need to specify the URL in the content tag, we need to know the port as well) On

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Brian LeRoux
I guess if it isn't running in the background then a collision is effectively impossible anyhow. On Wed, Oct 8, 2014 at 11:53 AM, Shazron shaz...@gmail.com wrote: But for 2, there is a chance of port collision still of course, nothing we can do about that. The ideal way is to get a random

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Joe Bowser
How can you guarantee that the port will be released when it goes in the background and not still be bound? That sounds like a main point of failure. Would you have it increment to the next port if the port is bound? On Wed, Oct 8, 2014 at 12:27 PM, Brian LeRoux b...@brian.io wrote: I guess if

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Marcel Kinard
On Linux, it's pretty easy to listen only on localhost, I don't know how difficult it is here. I would think that even for an experimental plugin, not being accessible to peers is really important. Not being accessible to other local apps will likely become important in the future. It still

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Shazron
Brian: The chances are small, but a backgrounded app could access the local web server of the foregrounded Cordova app. If it knew the port (which it may, through humans inspecting the config.xml in the .app beforehand) Joe: Don't have answers to all of those yet, haven't tested that

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Brian LeRoux
Will def be a fun alpha…fwiw I think this is The Future™ for the architecture. Opens lots of doors for interop and reuse. Between apps. Between devices. Also clears up the network security policy whitelist gong show. On Wed, Oct 8, 2014 at 12:31 PM, Joe Bowser bows...@gmail.com wrote: How can

Re: [iOS 8] Status of WKWebView work

2014-10-08 Thread Shazron
Ok, I completed the plugin. cordova plugin add https://github.com/shazron/CordovaLocalWebServer.git .. then follow the instructions printed after it installs. Repo: https://github.com/shazron/CordovaLocalWebServer File issues: https://github.com/shazron/CordovaLocalWebServer/issues On Wed,

Re: [iOS 8] Status of WKWebView work

2014-09-10 Thread Ross Gerbasi
Here are the results of some tests on iOS8, hopefully they will be useful to someone! :) I need to do some more useful tests on DOM related stuff as it was mentioned here already JS speed is not usually the bottleneck in Cordova apps. Unless you're doing crazy crypto like some people :)

Re: [iOS 8] Status of WKWebView work

2014-09-10 Thread Michal Mocny
On Wed, Sep 10, 2014 at 4:11 AM, Ross Gerbasi rgerb...@gmail.com wrote: Here are the results of some tests on iOS8, hopefully they will be useful to someone! :) I need to do some more useful tests on DOM related stuff as it was mentioned here already JS speed is not usually the bottleneck in

Re: [iOS 8] Status of WKWebView work

2014-09-10 Thread Shazron
Ross - shoot. Arrgh I may have mixed up my test apps :( I should emblazon WKWebView or UIWebView at the start of the app. Thank goodness for peer review... On Wed, Sep 10, 2014 at 1:11 AM, Ross Gerbasi rgerb...@gmail.com wrote: Here are the results of some tests on iOS8, hopefully they will be

Re: [iOS 8] Status of WKWebView work

2014-09-10 Thread Ross Gerbasi
If you have a chance can you re-run the tests and make sure I didn't screw anything up? :) -ross On Wed, Sep 10, 2014 at 11:04 AM, Shazron shaz...@gmail.com wrote: Ross - shoot. Arrgh I may have mixed up my test apps :( I should emblazon WKWebView or UIWebView at the start of the app. Thank

Re: [iOS 8] Status of WKWebView work

2014-09-10 Thread Carlos Santana
Ross can you clarify your results for Objectstore ArrayBuffer? Notes: - Objectstore ArrayBuffer is only supported in Safari WKWebView App iPod Touch iOS 8 *Safari* UserAgent - Mozilla/5.0 (iPod touch; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0

Re: [iOS 8] Status of WKWebView work

2014-09-10 Thread Ross Gerbasi
Yeah sorry :( I mixed those up there, it got pretty late when I was writing all this up. OS Arraybuffer is support in the WKWebView and Safari, it is not available in a HomeScreen app or the UIWebView. According to HTML5 Test running in those environments. Apologies for the confusion. -ross On

Re: [iOS 8] Status of WKWebView work

2014-09-10 Thread Ross Gerbasi
Also for those interested in Browser features this is what we gained from iOS 7 Safari to iOS 8 Safari. I have not had a chance to test all these new features in UIWebView or Homescreen yet to confirm they all have them. I only know indexedDB for now is only working in WKWebView and Safari. -

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread Shazron
Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5 and used Xcode 6 GM, and the file:// url bug (assuming it is a bug and not by design) is still there. http://www.openradar.me/radar?id=5839348817723392 On Fri, Sep 5, 2014 at 12:48 PM, Shazron shaz...@gmail.com wrote:

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread Tommy Williams
That's pretty disappointing. Especially with not even a comment from apple. On 10 Sep 2014 05:50, Shazron shaz...@gmail.com wrote: Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5 and used Xcode 6 GM, and the file:// url bug (assuming it is a bug and not by design) is

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread Andrew Grieve
:( Hopefully UIWebView will still get some updates though? E.g. IndexedDb? On Tue, Sep 9, 2014 at 4:18 PM, Tommy Williams to...@devgeeks.org wrote: That's pretty disappointing. Especially with not even a comment from apple. On 10 Sep 2014 05:50, Shazron shaz...@gmail.com wrote: Well, bad

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread Kerri Shotts
Nooo! :-( I guess we'll have to hope for 8.0.1 or 8.1? ___ *Kerri Shotts* photoKandy Studios, LLC On the Web: http://www.photokandy.com/ *Social Media:* Twitter: @photokandy,

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread julio cesar sanchez
I had news from apple, they closed my bug repport because it was duplicated (obviously, I copied shazron bug report)

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread tommy-carlos williams
OK. I think it’s time to start thinking about workarounds. On 10 September 2014 at 5:50:00, Shazron (shaz...@gmail.com) wrote: Well, bad news. I just installed the iOS 8 GM firmware on an iPhone 5 and used Xcode 6 GM, and the file:// url bug (assuming it is a bug and not by design) is still

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread Shazron
UIWebView iOS 8 scores 440/555 points on html5test.com, and yes it supports indexedDB Full results: http://html5te.st/f16d892273bbe5bd On Tue, Sep 9, 2014 at 1:33 PM, Andrew Grieve agri...@chromium.org wrote: :( Hopefully UIWebView will still get some updates though? E.g. IndexedDb? On Tue,

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread Shazron
Some interesting findings - iOS UIWebView and WKWebView have the same user-agent value, and both score 440 on html5test.com. Which makes me think they use the same engine (renderer and js), but UIWebView has nitro turned off. WKWebView seems to be about 4x faster on the Sunspider benchmark. On

Re: [iOS 8] Status of WKWebView work

2014-09-09 Thread Andrew Grieve
That's great news. JS execution speed honestly hasn't really been a problem for Cordova apps that I've heard of anyways. On Tue, Sep 9, 2014 at 7:01 PM, Shazron shaz...@gmail.com wrote: Some interesting findings - iOS UIWebView and WKWebView have the same user-agent value, and both score 440

[iOS 8] Status of WKWebView work

2014-09-05 Thread Shazron
I figure I will write this all up before the official release of iOS 8 next week (probability high) and everyone asking about support. It has stalled because the WKWebView cannot load files using the file:// protocol since iOS 8 beta 4. This bug has been filed with Apple weeks ago:

Re: [iOS 8] Status of WKWebView work

2014-09-05 Thread Shazron
Clarification: When I said The bridge works great, and plugins work great. this was for loading a html page and plugins using the file:// protocol using WKWebView (as the title of the report implies). The bug I reported was on Device ( iOS beta 4), on Simulator it is *fine* (this info was in the