Page 1 of 1

Update Cordova

Posted: Thu Sep 05, 2013 3:01 pm
by webmaster

Can you Update Cordova component? Many bug fixes. onOnline/onOfline does not work. navigator.connection.type always unknown and many many problems.


Update Cordova

Posted: Thu Sep 05, 2013 3:05 pm
by maxkatz

We currently use Apache Cordova version 2.9 - which is one of the latest versions (there is only 3.0 available now).


Update Cordova

Posted: Thu Sep 05, 2013 3:34 pm
by webmaster

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)
Image


Update Cordova

Posted: Thu Sep 05, 2013 3:47 pm
by maxkatz

This is what I get for when running on device:

code
alert(device.cordova);
/code

Image


Update Cordova

Posted: Thu Sep 05, 2013 3:49 pm
by webmaster

ok there r test project https://appery.io/app/project/655ec67...

UPD screenshot Image


Update Cordova

Posted: Thu Sep 05, 2013 4:49 pm
by maxkatz

Is this running in Android emulator?


Update Cordova

Posted: Thu Sep 05, 2013 5:00 pm
by webmaster

nop, on device.


Update Cordova

Posted: Thu Sep 05, 2013 6:03 pm
by maxkatz

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.