Search code examples
iphoneobjective-ciosipadiphone-4

Alarm app for iPhone sdk with Music


I want to create a Alarm clock app. And as i know for this we have to use NSLocalNotification which play music for 30 second, As apple says sound file must be in Main bundle for Notification. How can i play sound file from Music Library ? Most of alarm app on App store are using Music Library ? Any Help Will be really appreciate...


Solution

  • Having built such an app, the answer is that you can't play from the lib for the notification sound, only if they acknowledge the notification and launch your app.