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

Show a warning when the battery optimisation is active for the app #172

Closed
3 tasks done
GrazianoCapelli opened this issue Mar 18, 2022 · 1 comment
Closed
3 tasks done
Assignees
Milestone

Comments

@GrazianoCapelli
Copy link
Member

GrazianoCapelli commented Mar 18, 2022

Some systems / brands (starting from Marshmallow) adopt an aggressive behaviour with the background apps, specially when the battery optimisation is active.
We should show a warning to inform the users that the app is battery optimised.
The warning doesn't block in any way the app and, as soon as the app obtains the FIX, the warning disappears.

On some other systems / brands the app works well also when battery optimised; maybe we should add the possibility to dismiss the warning (if dismissed, should it never appear again?)...

TO DO LIST:

  • v3.1.4 - Add the Warning to the GPS Fix Tab (as a first implementation we'll use the @string/dlg_app_killed_description)
  • v3.1.4 - Add a small X button to allow the user to dismiss the warning (only for the session)
  • v3.2.0 - Add a new string to better describe the battery optimisation warning
@GrazianoCapelli
Copy link
Member Author

On some other systems / brands the app works well also when battery optimised; maybe we should add the possibility to dismiss the warning (if dismissed, should it never appear again?)...

I chosen the conservative approach for now: the warning is dismissed only for the current session; when the app is closed and reopened, the warning appears again. I chosen this approach because:

  1. Even if the app works well with optimisation active, its deactivation does not increase the battery usage. The battery optimisation should be disabled also in these cases;
  2. The warning doesn't block anything, and disappeas when the FIX is found;

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

1 participant