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

[Enhancement] Prevent iOS auto-lock while VM is running #1217

Closed
conath opened this issue Dec 9, 2020 · 0 comments
Closed

[Enhancement] Prevent iOS auto-lock while VM is running #1217

conath opened this issue Dec 9, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@conath
Copy link
Contributor

conath commented Dec 9, 2020

Currently while a VM is running, the iOS device will eventually auto-lock and cause the VM to suspend. In my opinion this should be prevented, the API for this is UIApplication.isIdleTimerDisabled.

    // Disable iOS auto-lock
    UIApplication.shared.isIdleTimerDisabled = false;

Naturally, leaving the screen on and the VM running indefinitely will drain the device's battery. Therefore it might be reasonable to include a setting that controls this behavior (in the Settings bundle?).

@conath conath added the bug Something isn't working label Dec 9, 2020
@osy osy added enhancement New feature or request and removed bug Something isn't working labels Dec 15, 2020
@osy osy closed this as completed in 53f5df0 Dec 29, 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