hello, I have an application which retrieves the user’s location every 3 seconds, but the retrieval does not work if the user does not move, I have you the location of the same user being fixed, because if the user does not move the geolocation stops after a few minutes.
Help please
async startBackgroundGeolocation(idClient) {
console.log("startBackgroundGeolocation")
const loading = await this.loadingController.create({
message: 'Chargement en cours...'
});
await loading.present();
const config: BackgroundGeolocationConfig = {
desiredAccuracy: 0, //10,
stationaryRadius: 0,
distanceFilter: 0,
debug: true, // enable this hear sounds for background-geolocation life-cycle.
stopOnTerminate: false,// enable this to clear background location settings when the app terminates
interval: 3000,//60000,
fastestInterval: 3000, //60000,
activitiesInterval: 3000, //60000,
activityType: 'AutomotiveNavigation',
pauseLocationUpdates: false,
stopOnStillActivity: false,
// notificationText: "Hello , vous êtes actif en ce moment",
notificationIconColor: "#FFA07A",
startForeground: true,
// notificationsEnabled: false,
url: this.BaseUrl + this.Module_Taxi + this.Url_Device_Tracking_With_Update_Client,
httpHeaders: {
'Content-Type': 'application/json'
},
postTemplate: {
latitude: '@latitude',
longitude: '@longitude',
accuracy: "@accuracy",
IdClient: idClient,
}
};