cordova-plugin-locationservices
cordova-plugin-locationservices copied to clipboard
watchPosition location update takes 2 to 3 minutes
I called watchPosition function, I am getting the locations 2 or 3 minutes once. Sometime, It is taking 3 to 4 minutes to get the location updates, But it returns bulk(10 to 20 entries) locations at once. It seems, It collects the location every 1 minute and It is not returning every one minute, It is returned every 2 or 3 min randomly with all the collected location detail. Sometimes It gives location details after 4 or 5 minutes.
Options: {maximumAge : 0, timeout: 15000, enableHighAccuracy: true, priority: cordova.plugins.locationServices.geolocation.priorities.PRIORITY_HIGH_ACCURACY, interval: 1000, fastInterval: 5000}
This may be related to setMaxWaitTime.
I have to do some tests and maybe update the plugin API to add support for this method and flushLocations
.