I am trying to get a custom sound that works on UILocalNotification , and I just don't get any sound. If I use UILocalNotificationDefaultSoundName , I really get the default sound, but when a custom sound is set, there is no sound, just a message. As far as I can tell, the sound is less than 30 seconds and it is in the correct format. Here is a screenshot of the file information: 
I checked the .app directory in the Xcode DerivedData directory, and the alarm.caf file is in the root directory of the application, which I believe means it in the package (right?).
I am sure this worked a while ago, and since then I have updated Xcode. Maybe this is a hint?
I also tried uninstalling / reinstalling / rebooting as mentioned in other answers. As you can see, I first call cancelAllLocalNotifications .
Can anyone understand what might be wrong?
[[UIApplication sharedApplication] cancelAllLocalNotifications]; NSLog(@"installing alarm"); [arguments pop]; // name [arguments pop]; // title alarm.alertBody = [arguments pop]; alarm.fireDate = [[NSDate date] addTimeInterval:[[arguments pop] intValue]/1000]; //alarm.soundName = UILocalNotificationDefaultSoundName; alarm.soundName = @"alarm.caf"; [[UIApplication sharedApplication] scheduleLocalNotification:alarm];
Al wold
source share