zumzum
zumzum

Reputation: 20128

disable auto-lock even when iOS app is not running?

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

Answers (1)

Noah Witherspoon
Noah Witherspoon

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

Related Questions