Play user's alarm audio from app
I am trying to build an iphone app that will function more like a core alram clock but will have some extended features.
I want to know if there is a way to access user's alarm sound whenever the time comes. I am aware that the app needs to be running inorder to invoke that but I am curious if that is possible.
here is the flow:
user goes into the app and sets an alarm in the app and locks the screen without closing the app. After the set time, the app (since its still running) loads the sound the plays it. User then shuts/snoozes the alarm in the app.
I hope that flow is possible.
I am wondering how I can achieve that though. Since I am fairly new to iphone dev I am not sure how to access sound files and what not. Can anyone put some light on this? Especially the classes/objects I need to use. The iPhone OS reference is too overwhelming for me right now.
Thanks in advance!
|