I am developing an application of Alarm Clock. How can I pass the selected audio file from the device to the local notification ?
Note : I am using MPMediaPickerController to pick the song from iPod Music Library.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m afraid you can’t play an iPod song with a push notification.
The
soundproperty of a push notification references a file within your application bundle. That is, it’s a file that your app must provide (inside your bundle, so copying/downloading into your app’s Documents directory doesn’t work either). See also Preparing Custom Alert Sounds.Also, note that there is an upper length of the sound to be played: