Background Geolocation usage

Hello , I use this plugin from ionic website , it sent location to my server 1 or 2 times when I open the app, but when I close the app it not do anything , is anything wrong with my code ?

start(){
      const config: BackgroundGeolocationConfig = {
            desiredAccuracy: 10,
            stationaryRadius: 20,
            distanceFilter: 30,
            debug: true,  
            stopOnTerminate: false,   
                
    }; 
     this.backgroundGeolocation.configure(config)
      .subscribe((location) => {
        console.log(location);
        let data = location.latitude+'_'+location.longitude
        this.http.get('http://mywebsite.com/index.php/welcome/insertTestData/'+data, {}, {})
        .then(data => { 
          console.log(data.status); 
        })
        .catch(error => {  
        }); 
      }); 
      this.backgroundGeolocation.start();
    }
    stop(){
      this.backgroundGeolocation.stop();
    }

by using config “URL”, it will post all information to server, so I can get lat and lng on server

start(){ 
      const config: BackgroundGeolocationConfig = {
            desiredAccuracy: 10,
            stationaryRadius: 20,
            distanceFilter: 1,
            debug: true, //  enable this hear sounds for background-geolocation life-cycle.
            stopOnTerminate: false, // enable this to clear background location settings when the app terminates
            notificationTitle: 'Nearby people check',
            notificationText: 'Share your location',
            interval: 2000,
            url: "http://mywebsite.com/index.php/welcome/insertTestData"
                
    }; 
     this.backgroundGeolocation.configure(config)
      .subscribe((location) => { 
            console.log(location); 
        }); 
      }); 
      this.backgroundGeolocation.start();
    }