Is network.isReachable deprecated?

370 views
Skip to first unread message

Dan Silivestru

unread,
Jul 19, 2011, 11:11:19 PM7/19/11
to phonegap
Just noticed that network.isReachable seems to have been deprecated.
Does that mean we should be using navigator.network.getInfo instead
now?

Thanks in advance,

Dan Silivestru.

Shazron Abdullah

unread,
Jul 20, 2011, 12:30:35 AM7/20/11
to phon...@googlegroups.com
Never heard of getInfo. http://docs.phonegap.com see Connection and Events.

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Justin Blunk

unread,
Jul 20, 2011, 12:42:03 AM7/20/11
to phon...@googlegroups.com
Hi Dan,

I received help from Shazron (thanks again) recently about this as well.

You can do something like this...
if (navigator.network.connection.type != Connection.NONE) {
//doSomething

}

Hope that helps.


On 7/19/11 11:30 PM, "Shazron Abdullah" <shazron....@nitobi.com>
wrote:

Simon MacDonald

unread,
Jul 20, 2011, 9:20:44 AM7/20/11
to phon...@googlegroups.com

Dan Silivestru

unread,
Jul 20, 2011, 1:10:30 PM7/20/11
to phonegap
Thank you all for the quick reply.

On Jul 20, 9:20 am, Simon MacDonald <simon.macdon...@gmail.com> wrote:
> Yes, it has been deprecated.  Replaced with the Connection object:
>
> http://docs.phonegap.com/phonegap_connection_connection.md.html
>
> and on/offline events:
>
> http://docs.phonegap.com/phonegap_events_events.md.html#onlinehttp://docs.phonegap.com/phonegap_events_events.md.html#offline
>
> Simon Mac Donaldhttp://hi.im/simonmacdonald
Reply all
Reply to author
Forward
0 new messages