I am working on an app with alarm clock functionality, where I currently have an interface to set the alarm time and the timer can be started - this works flawlessly.
What I want to do - I know other apps do this (e.g. Alarm Clock HD) - is to let the user lock the screen and still have the app start playing the alarm sound 8.00 am in the morning.
The point of doing this that I need the time when the user went to sleep and later was woken up by the alarm sound.
How would I go about doing this?
Notice: I wish not to use nslocalnotifications or just prevent the phone from going to sleep.