android - phonegap Geolocation without WiFi and mobile network -


i developing application using phonegap android , use geolocation method. works when mobile network or wifi available. use geolocation without these being available. possible?

if want android use gps receiver on device, need set "enablehighaccuracy" option when setting watcher in phonegap app:

navigator.geolocation.watchposition(onsuccess, onerror, { enablehighaccuracy: true }); 

then able obtain location without relying on wifi or mobile network.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -