mauron85/cordova-plugin-background-geolocation

Location is not stored on provided syncurl address when device is not connected with internet connection.

DhruvSakhiya opened this issue · 0 comments

Your Environment

  • Plugin version: 3.1.0
  • Platform: Any
  • OS version:Any
  • Device manufacturer and model:Any
  • Running in Simulator:
  • Cordova version (cordova -v):
  • Cordova platform version (cordova platform ls):
  • Plugin configuration options:
    desiredAccuracy: 0,
    stationaryRadius:20,
    distanceFilter: 100,
    notificationTitle: 'Background tracking',
    notificationText: 'enabled location',
    debug: false,
    interval: 60000,
    fastestInterval: 60000,
    activitiesInterval: 60000,
    notificationsEnabled: false,
    stopOnTerminate:false,
    startForeground: true,
    maxLocations:200000,
    syncUrl: BASE_URL+'/api/store-order-location',
    url: BASE_URL+'/api/store-order-location',
    httpHeaders: {
    'token': accessToken
    },
    // customize post properties
    postTemplate: {
    latitude: '@latitude',
    longitude: '@longitude',
    api_timestamp:'@time',
    comment:'@Provider',
    order_id: itesm // you can also add your own properties
    }
  • Link to your project:

Context

When device is not connected with internet location is not stored and not uploaded in syncurl URL server in whatever state whether in forground mode or in background mode.

Expected Behavior

All location must be stored in local db and when net is activated all stored location must be stored to provided url, and it is working in any state.

Actual Behavior

when device is not connected with internet can't get location when device got internet connection.

Possible Fix

Steps to Reproduce

Context

Debug logs