I'm traking locations by post to my server but sometimes devices send locaions some times in a few seconds, though thery are the same latitude and longitude.
I set distanceFilter and stationaryRadius, but it does not working?
How to send location at a certain interval or when locations changed by a certain distance.
Steps to Reproduce
postLocation(location){
// Post location to my server
}
BackgroundGeolocation.on('location', (location) => {
BackgroundGeolocation.startTask(taskKey => {
// Function to send location
this.postLocation(location)
BackgroundGeolocation.endTask(taskKey);
});
});
Your Environment
Context
I'm traking locations by post to my server but sometimes devices send locaions some times in a few seconds, though thery are the same latitude and longitude. I set distanceFilter and stationaryRadius, but it does not working? How to send location at a certain interval or when locations changed by a certain distance.
Steps to Reproduce