iPhone - phone goes to sleep even if idleTimerDisabled is YES

前端 未结 9 1384
难免孤独
难免孤独 2020-11-30 03:45

I am using this in my appdelegate\'s applicationDidFinishLaunching: method to make sure the iPhone doesn\'t go to sleep during the time the app is open

[appl         


        
9条回答
  •  臣服心动
    2020-11-30 04:06

    I had a similar problem, and rebooting the phone fixed it. I couldn't find a programmatic fix for it, as even timers calling the idleTimerDisabled function on a one second interval didn't fix it either.

提交回复
热议问题