Keeping app active while phone sleeps?
Posted: Mon May 16, 2011 11:23 am
Good morning, everyone!
I have been working on an app that is basically a timer/calorie counter, with which Bernd has helped immensely.
Is it possible to have an app still active (ie. timers running/alarms firing) if the phone has gone to sleep?
The app I'm working on requires at least 15 minutes of the phone being "on." After those 15 minutes, an alarm sound plays, prompting the user to reset the timer. The problem I am running into is that the phone "sleeps" after 1 minute, and it appears that the timer stops and doesn't restart until the phone is "on" and active again.
I didn't expect this, as the iOS Simulator never "sleeps."
Any suggestions?
:Todd
I have been working on an app that is basically a timer/calorie counter, with which Bernd has helped immensely.
Is it possible to have an app still active (ie. timers running/alarms firing) if the phone has gone to sleep?
The app I'm working on requires at least 15 minutes of the phone being "on." After those 15 minutes, an alarm sound plays, prompting the user to reset the timer. The problem I am running into is that the phone "sleeps" after 1 minute, and it appears that the timer stops and doesn't restart until the phone is "on" and active again.
I didn't expect this, as the iOS Simulator never "sleeps."
Any suggestions?
:Todd