cordova-plugin-locationservices icon indicating copy to clipboard operation
cordova-plugin-locationservices copied to clipboard

watchPosition location update takes 2 to 3 minutes

Open kaleeswaran14 opened this issue 9 years ago • 1 comments

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}

kaleeswaran14 avatar Nov 24 '15 02:11 kaleeswaran14

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.

louisbl avatar Dec 12 '15 17:12 louisbl