Open Chinocy opened 3 years ago
BackgroundGeolocation.configure({ desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY, stationaryRadius: 50, distanceFilter: 50, notificationTitle: 'Background tracking', notificationText: 'enabled', debug: false, startOnBoot: false, stopOnTerminate: true, locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER, interval: 10000, fastestInterval: 5000, activitiesInterval: 10000, stopOnStillActivity: false, httpHeaders: { 'X-FOO': 'bar', }, postTemplate: { lat: '@latitude', lon: '@longitude', foo: 'bar', // you can also add your own properties }, url: 'http://192.168.1.85:5000/', syncUrl: 'http://192.168.1.85:5000/syncUrl', syncThreshold: 5, });
Not sending failed post location to syncUrl server
Server receive failed location post
Same problem here even with BackgroundGeolocation.forceSync()
BackgroundGeolocation.forceSync()
Your Environment
Context
BackgroundGeolocation.configure({ desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY, stationaryRadius: 50, distanceFilter: 50, notificationTitle: 'Background tracking', notificationText: 'enabled', debug: false, startOnBoot: false, stopOnTerminate: true, locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER, interval: 10000, fastestInterval: 5000, activitiesInterval: 10000, stopOnStillActivity: false, httpHeaders: { 'X-FOO': 'bar', }, postTemplate: { lat: '@latitude', lon: '@longitude', foo: 'bar', // you can also add your own properties }, url: 'http://192.168.1.85:5000/', syncUrl: 'http://192.168.1.85:5000/syncUrl', syncThreshold: 5, });
Not sending failed post location to syncUrl server
Expected Behavior
Server receive failed location post
Actual Behavior
Not sending failed post location to syncUrl server
Possible Fix
Steps to Reproduce
Context
Debug logs