mauron85/cordova-plugin-background-geolocation

Time-out error accessing GPS in background

Opened this issue · 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.