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 594B2111BE for ; Sun, 8 Jun 2014 01:09:17 +0000 (UTC) Received: (qmail 86935 invoked by uid 500); 8 Jun 2014 01:09:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 86897 invoked by uid 500); 8 Jun 2014 01:09:16 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 86886 invoked by uid 99); 8 Jun 2014 01:09:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2014 01:09:16 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of csantana23@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2014 01:09:13 +0000 Received: by mail-wg0-f43.google.com with SMTP id l18so4398183wgh.14 for ; Sat, 07 Jun 2014 18:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9RpzHeiHf7IUuudhTuiZI/QF7S8nkvIFDwBEVBgAzLw=; b=JT8yLYp4ZYvwQtyhACiy2L6YcNL+8WH2PfF/pzuhh82sym445dwzEa/iaCmst6SObH ahwQAcbrCsaCJbx8eQ8IZ1r3c5ek0wCM2Z9n/4N0WstxjWc8JCJY2gc+yKU7gw95kG/F 7h1lLh+UfJF67oadclgXx9/poxdstpjuouNtpmMhSzppa7BCCoG6CDTUtcsmjX7z+sbp 7RK49Y5WQMTjdF2+Pq4mOuErb36n1SHzl8C4RTSCD+Q9v4WUlRQfjHBLj/6idSpR/6jH EgFmc37yI0B8cdhf6/3MKecj4rX5QCGaylPhGlGTcACaMbwwTxX005KLjELPDFyXTTW5 IL5g== MIME-Version: 1.0 X-Received: by 10.195.18.8 with SMTP id gi8mr19207125wjd.75.1402189730054; Sat, 07 Jun 2014 18:08:50 -0700 (PDT) Received: by 10.195.11.166 with HTTP; Sat, 7 Jun 2014 18:08:49 -0700 (PDT) In-Reply-To: References: Date: Sat, 7 Jun 2014 21:08:49 -0400 Message-ID: Subject: Re: WKWebView for iOS8 From: Carlos Santana To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a1130cc46c4877304fb48bc77 X-Virus-Checked: Checked by ClamAV on apache.org --001a1130cc46c4877304fb48bc77 Content-Type: text/plain; charset=UTF-8 Shaz I think the closest replacement is [1] - (void)addUserScript:( WKUserScript *)*userScript * I have not tried my self, but looking forward on helping out. [1]: https://developer.apple.com/library/prerelease/ios/documentation/WebKit/Reference/WKUserContentController_Ref/index.html#//apple_ref/occ/instm/WKUserContentController/addUserScript : On Fri, Jun 6, 2014 at 12:47 AM, Shazron wrote: > No use in polling if we can't write anything back to JS from Obj-C. > > There's a private API to do so: > > https://github.com/WebKit/webkit/commit/adb4c60064b38b5ab3d6e78422325f35f0b7fe2b > only landed a few months ago, we'll have to do some advocacy through > whatever channels we have to get it in the public API (radars, > connections), since it is a deficiency in their API losing something > like stringByEvaluatingJavaScriptFromString > > > > On Thu, Jun 5, 2014 at 6:09 PM, Michal Mocny wrote: > > Oh wow. I totally assumed that you can postMessage in either direction > at > > any time. Wouldn't the alternative be polling from JS? > > > > -Michal > > > > > > On Thu, Jun 5, 2014 at 6:46 PM, Shazron wrote: > > > >> Well seems like the answer in iOS 8 beta 1 is -- no arbitrary sending > >> of JS, so no Obj-C -> JS communication, which leaves Cordova > >> handcuffed. Please everyone file radars for this. > >> https://devforums.apple.com/message/975230#975230 > >> > >> On Thu, Jun 5, 2014 at 3:40 PM, Shazron wrote: > >> > Thanks Tommy - I sure will. > >> > > >> > I think injecting JavaScript at arbitrary times -- you would just use > >> > WKUserScriptInjectionTimeAtDocumentEnd for WKUserScript -- although I > >> > haven't tested it. If setting JS at arbitrary times is taken away - > >> > yikes. > >> > > >> > Anyways, on the bridge front, I've posted my approach for the new > bridge: > >> > https://issues.apache.org/jira/browse/CB-6884 > >> > > >> > On Thu, Jun 5, 2014 at 2:06 PM, Tommy Williams > >> wrote: > >> >> I am sure you won't need it, but if I can help, let me know. > >> >> > >> >> I think the biggest hurdle will be firing user scripts at arbitrary > >> times > >> >> instead of only on page load.. There seems to be an API that hasn't > been > >> >> exposed :/ > >> >> On 6 Jun 2014 04:59, "Shazron" wrote: > >> >> > >> >>> My intent is to work on this today, in a branch for cordova-ios: > >> >>> https://issues.apache.org/jira/browse/CB-6863 > >> >>> > >> >>> On Wed, Jun 4, 2014 at 10:15 AM, Shazron wrote: > >> >>> > Use Safari to watch "Introducing the Modern WebKit API" (no login > >> >>> required): > >> >>> > https://developer.apple.com/videos/wwdc/2014/ > >> >>> > > >> >>> > On Wed, Jun 4, 2014 at 8:25 AM, Michal Mocny > > >> >>> wrote: > >> >>> >> You can probably bet on it. > >> >>> >> > >> >>> >> But this is really fresh news, we're as excited as you are, > trying > >> to > >> >>> >> figure out the details. > >> >>> >> > >> >>> >> > >> >>> >> On Wed, Jun 4, 2014 at 11:05 AM, Matthew David < > >> matthewadavid@gmail.com > >> >>> > > >> >>> >> wrote: > >> >>> >> > >> >>> >>> I am sure I am not the first to ask for this, but the new > WebView > >> for > >> >>> iOS > >> >>> >>> is now WKWebView with support for Nitro JS engine. Will > WKWebView > >> be a > >> >>> >>> selectable option in future builds of PhoneGap for iOS along > with > >> >>> support > >> >>> >>> for iOS7 and earlier? > >> >>> >>> > >> >>> >>> Matt > >> >>> >>> > >> >>> > >> > -- Carlos Santana --001a1130cc46c4877304fb48bc77--