Hi there,
I have added the following code to my iPhone application:
[[UIApplication sharedApplication] setIdleTimerDisabled:YES]
This is so that my screen remains active (as it is a sunrise alarm clock). However, if I receive a text message or calendar alert (i.e. a system alert view appears onscreen), then the iPhone screen dims after about 5 to 10 minutes and then switches off entirely. The net result...
...the app closes and the user sleeps in..not great :-/
Does anyone know how to avoid this happening?