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
Pluggin still run in background aven if app is closed #1
Comments
That's the point of using this library, it will continue to run and get location updates in background no matter what. For stopping this you have to call |
I know and that's perfect. |
It might be a bug in the library, I Will check it. But Please be sure that |
Ok thanks |
I ran the example app and the start stop buttons worked as expected without any problem, Please be sure that your |
yes the buttons worked as expected |
Hello I did some researches and here is what I understood:
What I would like instead, is that if there is no |
For me, the behaviour is still not right.
For me the correct behaviour should be either :
|
This is the expected behavior, The plugin won't stop locating automatically, you have to manually stop it. |
Ok thanks for your answer |
It would be great if a "onTerminated" property added to the plugin. If true then unRegisterLocationUpdate() will be called when app is closed. Calling BackgroundLocator.unRegisterLocationUpdate(); in dispose() doesn't work. |
@bobppsureway Please open a new issue for this. |
@Sly2024 @bobppsureway auto stop option added. |
Hello,
I managed to make the package to work.
However, when I close the app on android (not just put in background), the location tracking is still active, draining the battery.
How to automatically stop the tracking in this case?
The text was updated successfully, but these errors were encountered: