swisscovid-app-android icon indicating copy to clipboard operation
swisscovid-app-android copied to clipboard

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

Open openscript opened this issue 3 years ago • 6 comments

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 avatar Sep 03 '20 09:09 openscript

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?

openscript avatar Sep 09 '20 12:09 openscript

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

jaromeyer avatar Sep 13 '20 09:09 jaromeyer

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.

openscript avatar Sep 13 '20 10:09 openscript

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.

simonroesch avatar Sep 13 '20 10:09 simonroesch

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 avatar Sep 13 '20 16:09 openscript

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.

openscript avatar Sep 13 '20 16:09 openscript