Can you Update Cordova component? Many bug fixes. onOnline/onOfline does not work. navigator.connection.type always unknown and many many problems.
Can you Update Cordova component? Many bug fixes. onOnline/onOfline does not work. navigator.connection.type always unknown and many many problems.
We currently use Apache Cordova version 2.9 - which is one of the latest versions (there is only 3.0 available now).
Ok, but this doesnt work! Try - make test project and set onLoad on any page this code:
checkConnection();
function checkConnection() {
dump(navigator.connection);
}
function dump(obj) {
var out = '';
for (var i in obj) {
out += i + ": " + obj + "\n";
}
alert(out);
}
and run app on any Android device. Its always print "type: 0". And I check cordova.js (see attch. image) - build date Feb 04 2013 (like version 2.2)
ok there r test project https://appery.io/app/project/655ec67...
Is this running in Android emulator?
nop, on device.
I think PhoneGap does work.. because you get values such as WIFI, CELL_2G, etc. As to why you get type: 0 -- I'm not sure. You might want to check PhoneGap docs/forum.