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

Stop location updates when app goes to background #2

Closed
joseAugustoCR opened this issue Nov 2, 2018 · 1 comment
Closed

Stop location updates when app goes to background #2

joseAugustoCR opened this issue Nov 2, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@joseAugustoCR
Copy link

The library seems to keep getting location updates after the app goes to background and the location icon is always displayed in the status bar

How can I stop the location updates in onStop method of the activity and request again in onResume?

screenshot_20181102-091826 1

@david-serrano
Copy link
Owner

Hi @joseAugustoCR, please update to the latest version (1.2). I have added lifecycle awareness for onPause and onResume. You can see how to integrate into the activity lifecycle in the sample app :)

@david-serrano david-serrano added the enhancement New feature or request label Nov 2, 2018
@david-serrano david-serrano self-assigned this Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants