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 562 forks source link

Application process don't stoped if this component have status Running #535

Open Witexp opened 3 years ago

Witexp commented 3 years ago

Your Environment

Context

I wanted to use the @ mauron85 / react-native-background-geolocation component for Geo traking, but I noticed this situation - if you give a signal to start the component (BackgroundGeolocation.start ();), and then minimize and then swipe to close the application, then the application is like that remains hanging in memory (this can be seen through the adb shell - using the top command). I'm using BackgroundGeolocation.removeAllListeners (); in componentWillUnmount but it doesn't help

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

  1. Connect Device via usb
  2. run /android-sdk/platform-tools/adb shell
  3. use - top
  4. run the app on the device
  5. run function - BackgroundGeolocation.start();
  6. minimize the application
  7. close the application with a swipe
  8. see command output top - the application did not close

Context

Debug logs