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

App only works, when phone is active (screen on) #212

Open
openscript opened this issue Sep 3, 2020 · 6 comments
Open

App only works, when phone is active (screen on) #212

openscript opened this issue Sep 3, 2020 · 6 comments

Comments

@openscript
Copy link

I've noticed notifications from the app that it's not working because Bluetooth is switched off. Bluetooth is not switched off and other devices successfully are connected in the background like my smartwatch.

Screenshot_20200903-110259

A few seconds after the phone is active (not unlocked, just the screen is on) the message disappears. I've recorded the apps activities with the dev tools and it really seems like the COVID app only works, when the screen is on.

I'm on Android 10 (OxygenOS 10.3.5) on a Oneplus 6 (A6003) phone. How can I verify if the app works or doesn't in background, when the phone is not active?

@openscript
Copy link
Author

I've found other users with different phones (Xiaomi A3, ...), which have the same problem. It seems like the app usually doesn't work if the device is sleeping. I don't see any activity of exchanged data anywhere. What is the best way to verify the app works?

@jaromeyer
Copy link

jaromeyer commented Sep 13, 2020

Even with battery optimization set to "Not optimized"? Could be doze related

@openscript
Copy link
Author

openscript commented Sep 13, 2020

Even with battery optimization set to "Not optimized"? Could be doze related

Hmm.. no the notification still appears after the phone screen was off for a few minutes. Also I cannot imagine that a normal user digs into the settings and sets this.

@simonroesch
Copy link
Contributor

I tested the app on a Oneplus 6 with Android 10 and can't reproduce this problem. Is it possible, that you have a battery saver app installed (that automatically deactivates Bluetooth when the screen is turned off and reactivates it once it is back on)? This would explain this behaviour. You should then reconfigure your battery saver to keep Bluetooth activated.

@openscript
Copy link
Author

openscript commented Sep 13, 2020

The phone is pretty much unmodified (stock rom, no optimization apps). I've restarted the phone (after I've changed the setting to not optimized) and it seems to work now!

@openscript
Copy link
Author

Are there instructions I've missed? I think to give the app the full potential the app needs to recognize such problems and help the user to configure the phone.

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