react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Stop HTTP post requests are being sent to server.

Open akshay02573 opened this issue 2 years ago • 6 comments

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

  1. Start the schedule after setConfig for HTTP request details.
  2. Call BackgroundGeolocation.stop(); method on schedule stop.
  3. Observe the onHttp is still called.

Context

Trying to tracking user location for scheduled time.

Debug logs

Logs
PASTE_YOUR_LOGS_HERE

akshay02573 avatar Apr 19 '23 14:04 akshay02573

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 avatar Apr 19 '23 14:04 christocracy

@christocracy It is still sending request to server after using .destroyLocations();

akshay02573 avatar Apr 19 '23 15:04 akshay02573

Then you have not told the plug-in to .stop().

observe the plug-in logs.

christocracy avatar Apr 19 '23 15:04 christocracy

@christocracy So can you let me know how can we stop the post request to server?

akshay02573 avatar Apr 20 '23 07:04 akshay02573

Can you show me the plug-in logs? Use ..emailLog method

christocracy avatar Apr 20 '23 10:04 christocracy

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 21 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 04 '24 01:06 github-actions[bot]