I am developing an application using Phonegap for Android and use its geolocation method. This only works when mobile network or WiFi are available. I would like to use geolocation without these being available. Is this possible?
If you want Android to use the GPS receiver on the device, you need to set the "enableHighAccuracy" option when setting up the watcher in you Phonegap app:
navigator.geolocation.watchPosition(onSuccess, onError, { enableHighAccuracy: true });
Then you will be able to obtain a location without relying on Wifi or mobile network.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With