How to set up an alarm using UIDatePicker?
Push notifications ... OR ....
I noticed the other day that if I turn off the screen (with the button at the top) that my app is still receiving gps updates ....
So I'm starting to think that just clicking on the top button doesn't actually exit your app ... You will need to do some experimentation to prove it ... but perhaps you could still play sound with the screen off?
source to share
There really isn't a good, clean solution at this point. The best I could find is the class ( http://code.google.com/p/iphone-insomnia/ ) that keeps it from sleeping. With this startup, you can do whatever you want, but it will likely drain the battery pretty quickly.
Another half of the solution is that the iphone is awake if it is charging. This way, you can simply warn your users that the alarm will only work if the iPhone is charging before installing it and that they cannot leave the app.
source to share