webmaster
Posts: 0
Joined: Thu Aug 29, 2013 10:50 am

Update Cordova

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Update Cordova

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

webmaster
Posts: 0
Joined: Thu Aug 29, 2013 10:50 am

Update Cordova

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Update Cordova

This is what I get for when running on device:

code
alert(device.cordova);
/code

Image

webmaster
Posts: 0
Joined: Thu Aug 29, 2013 10:50 am

Update Cordova

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

UPD screenshot Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Update Cordova

Is this running in Android emulator?

webmaster
Posts: 0
Joined: Thu Aug 29, 2013 10:50 am

Update Cordova

nop, on device.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Update Cordova

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.

Return to “Issues”