iOS Development

Preventing device sleep

Set the isIdleTimerDisabled property on the UIApplication object to true in order to prevent the device from going to sleep due to limited/no interaction. For obvious reasons, be careful with this api as it’ll prevent the device from going to sleep.

Last updated: 2021-05-29 23:05:39 -0700