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 63743DBC8 for ; Tue, 21 May 2013 21:52:46 +0000 (UTC) Received: (qmail 66389 invoked by uid 500); 21 May 2013 21:52:46 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 66362 invoked by uid 500); 21 May 2013 21:52:46 -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 66354 invoked by uid 99); 21 May 2013 21:52:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 21:52:46 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of raycamde@adobe.com designates 64.18.1.218 as permitted sender) Received: from [64.18.1.218] (HELO exprod6og125.obsmtp.com) (64.18.1.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 21:52:41 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob125.postini.com ([64.18.5.12]) with SMTP ID DSNKUZvslD/GF9lhfvsdBDuNN1CkEKZECaFC@postini.com; Tue, 21 May 2013 14:52:21 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r4LLn4Ks004728 for ; Tue, 21 May 2013 14:49:04 -0700 (PDT) Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r4LLqJAV023852 for ; Tue, 21 May 2013 14:52:19 -0700 (PDT) Received: from nambx09.corp.adobe.com ([10.8.189.47]) by nacas01.corp.adobe.com ([10.8.189.99]) with mapi; Tue, 21 May 2013 14:52:19 -0700 From: Ray Camden To: "dev@cordova.apache.org" CC: Michael Sierra Date: Tue, 21 May 2013 14:52:16 -0700 Subject: Re: cordova API doc queries Thread-Topic: cordova API doc queries Thread-Index: Ac5WbXdOKGZ0iE8YSQaSvw1KHbzdAw== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.4.130416 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Are you sure? I built a demo a while ago to show connection handling, and I had to check during start up as well as use events. I just tested with PhoneGap 2.6 and Ripple, and on Chrome, it did *not* fire an event handler for network change when the app started. On 5/20/13 4:05 PM, "Shazron" wrote: > >> * Do relevant online/offline events fire when the app starts up, or >> only when a change is detected during execution? The text for the >> offline event iOS quirk implies the former case: "During initial >> startup, the first offline event (if applicable) takes at least a >> second to fire." If it fires when the app inits, is the value of >> navigator.onLine true or false during that 1-second delay? >> >> >During both startup and when a change is detected. > >navigator.onLine is tied to the connection API: >https://github.com/apache/cordova-js/blob/2d15c4045aab52f8b2d728bd90244894 >258b3b47/lib/common/plugin/network.js#L30-L34 > >During that iOS delay, it will be 'unknown' then after it should reflect >the right value.