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

Redirecting users to battery optimisation screen #121

Open
koenniem opened this issue Nov 5, 2020 · 0 comments
Open

Redirecting users to battery optimisation screen #121

koenniem opened this issue Nov 5, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@koenniem
Copy link

koenniem commented Nov 5, 2020

Suggestion: Since the wiki's best practices recommend disabling battery optimisation, it would be easy if users would be redirected to this screen directly when starting a study (if it's not disabled already).

Per this SO post, redirecting users to the battery optimisation screen (it cannot be done directly) can be achieved by adding the Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS flag to an intent. Alternatively, Permission.ignoreBatteryOptimizations.request() of flutter-permission-handler is meant to do the same.

@bardram bardram added the enhancement New feature or request label Nov 6, 2020
@bardram bardram self-assigned this Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants