Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service doesn't stop after closing the app #52

Open
n-ii-ma opened this issue Oct 17, 2022 · 2 comments
Open

Service doesn't stop after closing the app #52

n-ii-ma opened this issue Oct 17, 2022 · 2 comments

Comments

@n-ii-ma
Copy link

n-ii-ma commented Oct 17, 2022

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?

@pb-biswanatha-tewari
Copy link

@n-ii-ma did you find any solution for the same? am stuck with a similar problem

@eisodev
Copy link

eisodev commented Jan 18, 2023

Hey!

@n-ii-ma How do you verify that the service is still running? Would like to check this also because I'm only doing active tracking while on a specific screen.

For me the foreground service notification gets closed (at least on Pixel 5 API 33 emulator, package version 3.0.2, react-native 0.68.5) whenever I close the app manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants