cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Camden <>
Subject Re: cordova API doc queries
Date Tue, 21 May 2013 21:52:16 GMT
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:
>During that iOS delay, it will be 'unknown' then after it should reflect
>the right value.

View raw message