Closed n8fr8 closed 2 years ago
Yeah, thanks, forgot about this one. Will be interesting to see, if Apple allows us to make a nightlamp out of a mobile, just to keep the app running for serving websites.
It's an ugly hack for something which Apple is obviously not keen on happening. Otherwise, they would provide proper facilities for running web servers in the background.
https://developer.apple.com/forums/thread/111810
UIApplication.shared.isIdleTimerDisabled = true