Location data not sent to server after I kill the app

I’m building a delivery application. I need to track driver location every X seconds when the app minimized it’s working fine but if I kill the app it’s not sending data to the server. below is my code.

startBackgroundGeolocation() {
const config: BackgroundGeolocationConfig = {
  desiredAccuracy: 1,
  stationaryRadius: 1,
  distanceFilter: 1,
  interval: 10000,
  startOnBoot: true,
  startForeground: true,
  notificationTitle: "Delivery App",
  notificationText: "Test notification text",
  debug: true, //  enable this hear sounds for background-geolocation life-cycle.
  stopOnTerminate: false // enable this to clear background location settings when the app terminates

this.backgroundGeolocation.configure(config).then(() => {
    .subscribe((location: BackgroundGeolocationResponse) => {
      console.log('Application Lat' + location.latitude);
      console.log('Application Lon' + location.longitude);

      this.geo.Latitude = location.latitude;
      this.geo.Longitude = location.longitude;
      console.log('API Geo Latitude' + this.geo.Latitude);
      console.log('API Geo Longitude' + this.geo.Longitude);

      //     alert(location.accuracy);


One again:
This is the only working Cordova/Capacitor Plugin for Background Geolocation: https://github.com/transistorsoft/cordova-background-geolocation - It costs but is worth it. In our team we decide to buy it and it works great :blush:

Link not working 404 error

Sorry i posted the paid access one: GitHub - transistorsoft/cordova-background-geolocation-lt: The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.