RadarCOVID / radar-covid-android

Native Android app using DP^3T Android sdk to handle Exposure Notifications API from Google
Mozilla Public License 2.0
382 stars 84 forks source link

Energy saving issue #12

Open Srborjaa opened 3 years ago

Srborjaa commented 3 years ago

Describe the bug The app tells you that it is not working because the "energy saving" option is enabled, even it is deactivated.

To Reproduce Steps to reproduce the behavior:

  1. Enable energy saving
  2. Open the app
  3. Close it and disable energy saving
  4. Open the app and see error

Expected behavior To work as the energy saving feature is disabled.

Screenshots https://gyazo.com/a874870a66bf5675b486b692f17b2724

Device (if relevant):

Akrai commented 3 years ago

i think there should be an explanation for the users about the requirements for this app to work: keep location and bluetooth enabled and also talk about this kind of energy saving features some roms have, and how to make sure that this app works in those roms, explaining it for the less tech savvy people, even adding small videos of how to do it

JuanjoSalvador commented 3 years ago

This is not an issue itself. At least not related directly with the app, but with Android itself.

Gonza116 commented 3 years ago

Either way, a simple step-by-step explanation on how to disable Energy Saving for this app could be added. For example, Mi Fit detects what brand of phone you are using and gives you a very straightforward guide on how to avoid it.

fercarcedo commented 3 years ago

I'm also seeing this behavior on a Redmi Note 9 Pro (MIUI 11, Android 10). Disabling battery saving for the app in settings solved it.

No problems on my Pixel 3.

The issue with certain phone brands is well documented in https://dontkillmyapp.com , where some manufacturers apply strict battery saving measures. Since I also develop Android apps, I have also experienced this exact behavior.

I think if this is affecting the main functionality of the app in any way, then I think it would be better to make the app detect the device manufacturer and tell the user what to do to disable this aggressive settings (I think it's unreasonable to assume that the average user would figure this out without guidance).

pantic79 commented 3 years ago

@Srborjaa, please, could you check this?.

Please, let us know if your issue is already solved.

Have a nice day!.

Prometheus3k commented 3 years ago

Perhaps use this library to better explain to users about the extra setting since OEMs have for running app in background? https://github.com/judemanutd/AutoStarter