I\'m working on an app that requires no user input, but I don\'t want the iPhone to enter the power saving mode.
Is it possible to disable power saving from an app?<
Swift 3:
UIApplication.shared.isIdleTimerDisabled = true