views:

107

answers:

2

Hi and thanks in advance,

I'm aware Phonegap has a reachability API and I'd like to know how I can use it to detect if the phone is connected to the network or not.

What I found is here: http://github.com/phonegap/mobile-spec/blob/master/tests/network.tests.js

I just don't know how to use it or if it even suits my needs.

Thanks again.

+1  A: 

http://docs.phonegap.com/phonegap_network_network.md.html#Network

I noticed you had a few questions regarding phoneGap, there is alot of information in there documentation that I have linked to above... enjoy

Aaron Saunders
wow! Hadn't checked that out! Thanks dude!
StJimmy
A: 

The isReachable example was incorrect and confusing, so I pushed a quick update that demonstrates how to use isReachable on iOS / Android / BlackBerry.

The PhoneGap Documentation is still being actively written and isReachable has open tickets for all of the PhoneGap platforms. If you happen to find an errors (or find that the example is confusing), I'd appreciate a comment on one of the existing isReachable tickets.

Thanks! Michael

mwbrooks