.idleTimerDisabled

Hi


In iOS 10 beta 1, the "UIApplication.sharedApplication().idleTimerDisabled = true" still works, but the screen dims.


Does anyone know if this may be a BUG in iOS 10 or "by design"?

Have tried also setting: UIScreen.mainScreen().brightness = CGFloat(1.0). Does not help.


Works like expected in iOS 9.x

Replies

Did you report this? This one is important.

My bad. It is working.

I have a batterystatechanged observer. Disable idletimer if .isCharging. For some reason it seems like it does not trigger on viewdidload if the device is charging when app is loaded. Haven't experienced this in iOS 9.x. Not sure what, but something has changed.


Have changed my code a bit. Checking batterystatus directly on viewdidload instead. Actually this seems more logical, right? There is no change if charging when loading app;-)


Seems like the observer triggered when initiated on iOS 9.x but not in iOS 10?