Reputation: 20128
I know I can disable an iOS device's auto lock when my app is up and running, like so:
UIApplication.shared.isIdleTimerDisabled = true
My question is: is there a way from the app to disable the auto lock of the device (so, set it to never), even when the app is not running?
Upvotes: 0
Views: 123
Reputation: 57149
No; having an API for that would allow third-party apps to disable a security feature of the device. You can file an enhancement request if you’ve got a use case in mind, but it may not get far.
Upvotes: 5