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

Data collection stops when the screen is off #1861

Open
kuba-orlik opened this issue May 6, 2019 · 4 comments
Open

Data collection stops when the screen is off #1861

kuba-orlik opened this issue May 6, 2019 · 4 comments

Comments

@kuba-orlik
Copy link

The app stops gathering data once I lock the device's screen. Once I unlock my phone, everything goes back to normal

@Djfe
Copy link
Contributor

Djfe commented Aug 3, 2019

which android version are you on?

this might be due to doze mode.
try disabling battery optimization for MozStumbler

https://www.makeuseof.com/tag/androids-battery-optimization-harm-good/

@kuba-orlik
Copy link
Author

I'm on Android 8.1.0.

I've already tried disabling battery optimizations

@theopensourceguy
Copy link

What device is it and are you on stock or a custom ROM? Some manufacturers implement their own battery optimizations that are a little, let's say... overprotective when it comes to battery usage.

It might also be, that Android Oreo and newer is not too happy about Stumbler not using notification channels and thus killing the foreground service that should be running while stumbling. I tried to fix this in PR #1862, but I'm not sure when (if at all) that'll be merged. Take this with a grain of salt, though, as I'm not too sure that's what's actually happening.

@kuba-orlik
Copy link
Author

I'm on a custom ROM, MicrG+LineageOS

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