Cordova platform version (cordova platform ls): android
Plugin config provided to #ready:
BackgroundGeolocation.ready({
reset: true,
debug: false,
logLevel: BackgroundGeolocation.LOG_LEVEL_VERBOSE,
backgroundPermissionRationale: {
//title: "Allow {applicationName} to access this device's location even when closed or not in use.",
title: "{applicationName} ",
message: "collects location data to enable recording of your location tracing during your shift in any site location or patrolling even when closed or not in use.",
positiveAction: 'Change to "{backgroundPermissionOptionLabel}"',
negativeAction: 'Cancel'
},
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: this.global.getDistanceFilter(),
stationaryRadius:this.global.getStationaryRadius(),
url: this.global.getServerURL() + '/set_live_location',
autoSync: true,
stopOnTerminate: false,
startOnBoot: true
}, (state:any) => {
console.log('%c[ready] BackgroundGeolocation is ready to use','color: green;');
if (!state.enabled) {
// 3. wait till user login in to Start tracking.
//BackgroundGeolocation.start();
}
});
Expected Behavior
Device is online its sending lat lng to server, device is disconnected, moved around for 5 kms and its connected back to wifi after coming back, it should send the saved lat lng in local sql database to server.
Actual Behavior
Its sending data when connected to wifi / mobile app i.e when its online, once its offiline and comes back on wifi it does not send the saved data in local sql database.
Steps to Reproduce
Configure ready as given
install the app
disconnect from wifi / mobile connection
travel for 5 kms to generate location data, come back and connect wifi
Context
track security patrol teams who work in night shifts
Your Environment
cordova -v
): 11.1.0cordova platform ls
): android#ready
:Expected Behavior
Device is online its sending lat lng to server, device is disconnected, moved around for 5 kms and its connected back to wifi after coming back, it should send the saved lat lng in local sql database to server.
Actual Behavior
Its sending data when connected to wifi / mobile app i.e when its online, once its offiline and comes back on wifi it does not send the saved data in local sql database.
Steps to Reproduce
Context
Debug logs