Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB43BD3CC for ; Tue, 18 Sep 2012 17:19:56 +0000 (UTC) Received: (qmail 3309 invoked by uid 500); 18 Sep 2012 17:19:56 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 3237 invoked by uid 500); 18 Sep 2012 17:19:56 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 3226 invoked by uid 99); 18 Sep 2012 17:19:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 17:19:56 +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 mmocny@google.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 17:19:48 +0000 Received: by pbcwy7 with SMTP id wy7so402820pbc.6 for ; Tue, 18 Sep 2012 10:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :x-system-of-record; bh=8bRIgVXDttuOQHLwksp6wScSbAjJJBsGfRG6elHmHmA=; b=b8lglv2LTybgvDbPhExqUuM92opZNSTs4OJ6QsnrTP2k4lR9zY953Ngh2703vhrm7h P8clc5T6Vv1vRi5fN97Ga3ggMFnyjFBUUpwokVJoV8T/QL1ryQDVPtgnkob2ggqUIHuz +5LgbPMvqibYETiMJvA6dyb9WhMShAWXXZP11sKwinNMt5ZrANrWCST0OuqlMPP4jt4E RxCFdqWZb/79WYsHzjavQzctV7jKVj2BHrB0Ze+pD8tyvb1Un1PW1p2FdX5Z1lqzvkPS OAeTJjTmTnxriuO440d0gTtyUMmxYCuwcZ9a9xT6p6+I86gmYgTEKWAdfTO5YP9Ro6Hr r2dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :x-system-of-record:x-gm-message-state; bh=8bRIgVXDttuOQHLwksp6wScSbAjJJBsGfRG6elHmHmA=; b=ptH3zbh9vGtxx+BStfGbQ29wyS29ImifTF4SGVsvKVXlKrZ2MPtl0GAkTKo68sr3zq 8M/O2rYludAOImaK3osMLAxbI8yucGOJe/511arQRkpkKeuIQbg7c2uf1Uh55q8+PMHh ZrA5kUd5w74qTwUsBycDoEiVyT4w1AgHXa2qte10945Zrxg0WWyovBrBFP8/cXlizEAh y2t5z5PHubU7oHwy1WSTo6ds+eDz/pN+4xIKO5WB5g5h864xH1l6giehCnenaVKsBvzS r1vBu3/4b4n2KR1TMhOe+bgg0stIP5kWw+T+2yuVfeRMwycv/aktbsKFng6lDy3wx6Vk jg4g== Received: by 10.68.216.104 with SMTP id op8mr716431pbc.65.1347988767566; Tue, 18 Sep 2012 10:19:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.216.104 with SMTP id op8mr716147pbc.65.1347988763276; Tue, 18 Sep 2012 10:19:23 -0700 (PDT) Sender: mmocny@google.com Received: by 10.68.189.36 with HTTP; Tue, 18 Sep 2012 10:19:23 -0700 (PDT) In-Reply-To: <8839801798313690610@unknownmsgid> References: <8839801798313690610@unknownmsgid> Date: Tue, 18 Sep 2012 13:19:23 -0400 X-Google-Sender-Auth: iwM7gFuuJ5cWhdpqmAhR50jHJBw Message-ID: Subject: Re: Firing onNativeReady() on iOS From: Michal Mocny To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8ff243a565739c04c9fd1740 X-System-Of-Record: true X-Gm-Message-State: ALoCoQl0OEeTM8b2gPA7cCFZKSA+P4AvTUteHboD7e1/6XgtX/qwfqTY4maiRbwR1bBqpln0de7Gt+y+3M5N6b41j8aVu51quMRC7MN6+0B/4NaujoBdtZKI/U8htF5yMQu01MoluTnguAE2x46T87iW0Qk8b0CeufiUEyH6thKaWKfb2QqZkeW77tA5ExamMZzassykDGAC7zGqHcav/aV9r0ZJpuozRQ== --e89a8ff243a565739c04c9fd1740 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Sep 18, 2012 at 12:30 PM, Jesse MacFadyen wrote: > Correct! > Or a non cordova including page is loaded in the cordovawebview. > > Cheers, > Jesse > > Sent from my iPhone5 > Did you add this line manually? I thought these weren't available yet.. > > On 2012-09-18, at 8:52 AM, Andrew Grieve wrote: > > > The line looks like: > > > > [NSString stringWithFormat:@ > "cordova.iOSVCAddr='%lld';try{cordova.require('cordova/channel').onNativeReady.fire();}catch(e){window._nativeReady > > = true;}", (long long)self]; > > > > My guess is that the try/catch is in case this is run before cordova.js > has > > had a chance to parse. I'd like to add a comment to that effect if that's > > the case, but wanted to make sure first. > --e89a8ff243a565739c04c9fd1740--