Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12E4A1765D for ; Wed, 8 Oct 2014 18:52:58 +0000 (UTC) Received: (qmail 65683 invoked by uid 500); 8 Oct 2014 18:52:57 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 65642 invoked by uid 500); 8 Oct 2014 18:52:57 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 65629 invoked by uid 99); 8 Oct 2014 18:52:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 18:52:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shazron@gmail.com designates 209.85.192.51 as permitted sender) Received: from [209.85.192.51] (HELO mail-qg0-f51.google.com) (209.85.192.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2014 18:52:31 +0000 Received: by mail-qg0-f51.google.com with SMTP id z107so7528229qgd.10 for ; Wed, 08 Oct 2014 11:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Q3oNauGnhPZKqO/8VgtHke2jfgC9YoIy3fvFo38QdSg=; b=nSoVodwN+WnMj6FBdPzcM46VPt876Wv9U7nm4JnHL/VgXA1UKZXk/hWDvHP1vh9nqs G5NdT6yrJH8nX5ZxGfWpAfjQD8S227fuPBhTh6MziXosr2pu47A00B1giR0r8r5x2CJj WEInIaSNA3c4akAG9PamSn8xJ89xlZJFLpDyzZwQY/PCfwdFXRQL5uuSl2ymNjaA9rrS evMXiF1UDwFCAVLjPUjX84TT6pfTmXJ5Hy7iZLE/SV0aM9gylpJr47w4dUB87r/tfHdn 9piy1KBN5b8PzMpfBCtXPr0VTUVCVoxXkpyp4xpUGWMbgwburNDXqtQojhtwXWMQRTeG 9jnA== X-Received: by 10.224.38.6 with SMTP id z6mr16299897qad.4.1412794350579; Wed, 08 Oct 2014 11:52:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.20.140 with HTTP; Wed, 8 Oct 2014 11:51:50 -0700 (PDT) In-Reply-To: References: <543574e1.4a14450a.279e.19aa@mx.google.com> From: Shazron Date: Wed, 8 Oct 2014 11:51:50 -0700 Message-ID: Subject: Re: [iOS 8] Status of WKWebView work To: Brian LeRoux Cc: purplecabbage , Andrew Grieve , dev Content-Type: multipart/alternative; boundary=001a11c2a3f86838910504edd184 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2a3f86838910504edd184 Content-Type: text/plain; charset=UTF-8 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 wrote: > 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 wrote: > >> 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 >> wrote: >> >> > 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 wrote: >> > > >> > > 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 >> > wrote: >> > >> >> > >>> On Fri, Sep 5, 2014 at 2:40 PM, Shazron 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 8 beta 4. >> > >>> >> > >>> This bug has been filed with Apple weeks ago: >> > >>> http://www.openradar.me/radar?id=5839348817723392 >> > >>> >> > >>> I even checked WebKit check-ins if there was any progress, so far, >> no: >> > >> >> > >> http://trac.webkit.org/browser/trunk/Source/WebKit2/UIProcess/API/Cocoa?order=date&desc=1 >> > >>> (but it's entirely possible the loading code is in another part of >> the >> > >>> tree). >> > >>> >> > >>> 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. >> > >> >> > >> Shaz, did you implement a prototype with a local web server? Would be >> > >> useful to see how the code for this works. >> > >> >> > >> >> > >> >> > >>> >> > >>> The other interesting tidbit is, with WKWebView, for locally loaded >> > files >> > >>> using the file:// protocol, cross-domain restrictions now apply, >> unlike >> > >>> UIWebView's behaviour. To have the same behaviour as UIWebView, we >> > would >> > >>> need to proxy these requests (modify xhr.open to go to our proxy, >> which >> > >>> requires the local web server). >> > >>> >> > >>> The bridge works great, and plugins work great. >> > >> >> > >> > > --001a11c2a3f86838910504edd184--