I'm using this package with react-native-geolocation-service to track location similar to their example with the exception of starting the service in useEffect.
The problem is that the foreground service never stops when the app is closed since the return function of the useEffect which stops the service is never called.
Is there any way for this package to stop its service after the app is fully closed?
I'm using this package with react-native-geolocation-service to track location similar to their example with the exception of starting the service in
useEffect.The problem is that the foreground service never stops when the app is closed since the return function of the
useEffectwhich stops the service is never called.Is there any way for this package to stop its service after the app is fully closed?