I saw that ... but how is that handled by the platform specific plugins?

Markus

-----Original Message-----
From: Simon MacDonald [mailto:simon.macdon...@gmail.com] 
Sent: Mittwoch, 7. November 2012 15:56
To: dev@cordova.apache.org
Subject: Re: online/offline Events

lolz I didn't read what list this was on. The src for network.js is at:

https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=blob;f=lib/common/plugin/network.js;h=adaba5ae8b6ec825986712d8b99e660105e56ae9;hb=HEAD

The way we have it setup is the native side sends the JS side an update 
whenever the network connection changes. If the type == 'none' then we fire an 
offline event. Otherwise you fire the online event.

Simon Mac Donald
http://hi.im/simonmacdonald


On Wed, Nov 7, 2012 at 9:47 AM, Leutwyler, Markus
<markus.leutwy...@hp.com>wrote:

> I was actually looking for a code example (in cordova-js) of a 
> platform that sends out those events (because I'm investigating how to 
> add support for those to webOS)
>
> Markus
>
> -----Original Message-----
> From: Simon MacDonald [mailto:simon.macdon...@gmail.com]
> Sent: Mittwoch, 7. November 2012 15:39
> To: dev@cordova.apache.org
> Subject: Re: online/offline Events
>
> http://docs.phonegap.com/en/2.2.0/cordova_events_events.md.html#online
> http://docs.phonegap.com/en/2.2.0/cordova_events_events.md.html#offlin
> e
>
> Simon Mac Donald
> http://hi.im/simonmacdonald
>
>
> On Wed, Nov 7, 2012 at 9:36 AM, Leutwyler, Markus
> <markus.leutwy...@hp.com>wrote:
>
> > Is there a platform that sends out online/offline event to the 
> > document when the connection status changes? I didn't find any 
> > examples
> >
> > Thanks
> >
> > Markus
> >
>

Reply via email to