I am trying to get geolocation object and every time I get the TIMEOUT_EXPIRED error. The permission setup correctly.
navigator.geolocation.getCurrentPosition(function(position) {
location.lat = position.coords.latitude;
location.lng = position.coords.longitude;
checkin(location);
}, function (error) {
alert(error.message);
}, { timeout: 10000, enableHighAccuracy: true }
AndroidManifest:
uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
uses-permission android:name=“android.permission.ACCESS_LOCATION_EXTRA_COMMANDS”
On iOS everything is working fine.