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

Temporarily disable GPS while airplane mode is enabled #163

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rmh2022
Copy link

@rmh2022 rmh2022 commented Jun 6, 2022

When phone is in airplane mode, GPS readings have no use since TowerCollector can't obtain tower cell data. So we could save a lot of battery by temporarily disabling GPS until phone exits airplane mode.

This small change is very useful to me as I regularly toggle airplane mode in my phone but can't remember to start and stop TowerCollector every time. It's much less hassle if I can just leave TowerCollector running all the time and let it enable/disable GPS when it needs to.

@rmh2022
Copy link
Author

rmh2022 commented Jul 8, 2022

Hi!
Any concerns with this pull request? I've been using it for a month and app behaves as expected, haven't found any problems.

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

Successfully merging this pull request may close these issues.

1 participant