cordova-plugin-background-geolocation icon indicating copy to clipboard operation
cordova-plugin-background-geolocation copied to clipboard

Time-out error accessing GPS in background

Open mario-berardo opened this issue 4 years ago • 0 comments

Time-out Error while accessing GPS when app is running in background mode. Foreground mode it runs ok.

Your Environment

samsung J6, Android 10

the time -->

  • Plugin version: 3.1.0

  • Platform: Android

  • OS version: 10

  • Device manufacturer and model: Samsung J6

  • Running in Simulator: No

  • Cordova version : 10

  • Cordova platform version : Android API 26 Target

  • Plugin configuration options:

    BackgroundGeolocation.configure({ locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER, desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY, stationaryRadius: 50, distanceFilter: 10, notificationTitle: 'Background tracking', notificationText: 'enabled', debug: false, interval: 10000, fastestInterval: 5000, activitiesInterval: 10000, url:"", //url: gServerPath + "SaveLocation",

      //httpHeaders: {
        //'conten': 'bar'
      //},
      // customize post properties
      postTemplate: {
        lat: '@latitude',
        lng: '@longitude',
        id: gUser.id, // you can also add your own properties
        status:"on",
        catVei:1,
        recebimento:1,
        tokenPush : gUser.token_notificacao
      },
      stopOnTerminate:true,
      maxLocations:2
    });        
    
  • Link to your project:

Context

 The Plugin was running fine until today.  Today it starts the time-out error, 
  I did not build any compilation. 

mario-berardo avatar Oct 22 '20 16:10 mario-berardo