Playing an alarm clock application
Why is building an alarm clock app so hard?
So I thought it would easy to duplicate the functionality of the popular alarm clock apps out there. With the other alarm clocks, when you leave the app running, the screen dims and the phone locks, but the app itself does not sleep (i think). When the alarm time is hit, the alarm sounds off and continues to play until I wake up.
So i've tried mimicking this functionality, but to no avail. I've tried UILocalNotification, but the sound plays for 30 seconds only. I've tried application.idleTimerDisabled=YES, but the battery drains and dies. I've also tried performselector withObject: withDelay: but the thread sleeps when the app sleeps.
Does anyone know how these apps do it?
-d
|