Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap GPS without internet

I m trying to make an android app which count the distance traveled from log,lan values with phonegap.But phonegap GPS work only when internet or wifi in ON condition.How can get log ,lan values without internet by using geolocation api.Thanks in advance .

like image 990
jiss Avatar asked Sep 22 '11 16:09

jiss


1 Answers

See the PhoneGap API Docs for Geolocation under the geoLocationOptions:

Android Quirks

The Android 2.x simulators will not return a geolocation result unless the enableHighAccuracy option is set to true.

{ enableHighAccuracy: true }

Enabling that option will allow the Android device to get the location even with the WIFI option disabled.

like image 56
spatical Avatar answered Sep 20 '22 05:09

spatical