react-native-background-geolocation
react-native-background-geolocation copied to clipboard
Stop HTTP post requests are being sent to server.
Your Environment
- Plugin version: 4.10.1
- Platform: iOS or Android: Both
- OS version: 15.5
- Device manufacturer / model: iPhone 13
- React Native version (
react-native -v): 0.63.4 - Plugin config
BackgroundGeolocation.stop();
Expected Behavior
Should stop the post request send to server.
Actual Behavior
It continue send location update on server.
Steps to Reproduce
- Start the schedule after setConfig for HTTP request details.
- Call BackgroundGeolocation.stop(); method on schedule stop.
- Observe the onHttp is still called.
Context
Trying to tracking user location for scheduled time.
Debug logs
Logs
PASTE_YOUR_LOGS_HERE
The plug-in’s http service feeds off records found in its SQLite database. If you clear the plug-in’s SQLite database, there will be no records found to upload.
see api docs .destroyLocations().
Are you observing the plug-in logs during development? See wiki “Debugging”. It’s not enough to observe what happens in the plug-in event-handlers (eg onHttp). You must observe the plug-ins logs.
@christocracy It is still sending request to server after using .destroyLocations();
Then you have not told the plug-in to .stop().
observe the plug-in logs.
@christocracy So can you let me know how can we stop the post request to server?
Can you show me the plug-in logs? Use ..emailLog method
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.