iOS

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: 2020-06-07 16:24:37 -0700