I've run into a problem. In my app there are some screens where I have to prevent the screen switching off. In the ViewDidAppear-function I do:
UIApplication.SharedApplication.IdleTimerDisabled = true;
and then in ViewDidDisappear I reset IdleTimerDisabled to its original state.
This has worked fine for a couple of years. But, I'm getting an increasing number of reports where this is not working anymore. I think this is mainly on newer phones (iphoneX and newer) so it could be a phone model or an iOS 13 thing - but I don't know.
Any ideas why disabling the idle timer would not be enough to prevent screen auto-lock?