I need to check network connectivity from my app. I found that cordova provides this feature: http://cordova.apache.org/docs/en/2.5.0/cordova_connection_connection.md.html#Connection
but when I test my app in preview in Chrome, when the code reach "return navigator.connection.type.toString();" from my app I see following error:
"cannot read property 'type' of undefined"
If in Chrome's console I write navigator Chrome shows me then the possible options, and connection is not one of those. The same app tested in Android emulator, works fine
I use navigator.geolocation to get location and display a map and it works just fine.
Thanks, Giovanni