mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 561 forks source link

Not sending failed post location to syncUrl server #520

Open Chinocy opened 3 years ago

Chinocy commented 3 years ago

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

  1. Just start a project, add this library and try to run it on Android.

Context

Debug logs

HizkiasAbraham commented 3 years ago

Same problem here even with BackgroundGeolocation.forceSync()