System.schedulenotification( Time, {Sound = "beep_Caf.caf"} ) Plays Default Sound

I cannot figure this out. I’m scheduling notifications and all I want is for a sound to play. So I’m using the following line of code:

system.scheduleNotification( time, {sound = "audio/beep\_caf.caf"} )

The notification seems to fire correctly (most of the time anyway) – however, it invariably plays the default iOS notification sound, rather than the one I use in the parameter options. 

I’m using build 2013.1076 

I figured it out. For anyone else having this issue, you can’t put audio for notifications in subfolders – they must be in the root of the project.

EDIT:

Nope, still an issue. And it’s really weird. I have 6 .wav  files as my alert sounds, all in the root of the project (chime1.wav, chime2.wav, etc.). If I use chime1.wav or chime5.wav, it works. If I use any of the others, I get the default notification sound, and the console gives me the following error:

No alert sound found at path ‘/Users/stephen/Library/Application Support/iPhone Simulator/6.1/Applications/8BC20204-0157-441C-9C4B-649D7A2A2301/mza_test.app/chime2.wav’

I opened that path in the finder, and all my chime#.wav files are there and playable. And I use those files within the app while it’s active, so I know there’s no problem with them. I’m completely flabbergasted.  Please help!

I tried deleting those files that it couldn’t find and replacing them with copies of chime1.wav, and it works. So I guess there’s something about the wave files that the notification system doesn’t like. Does anyone know the notification sound requirements? As far as I can tell, the wave properties between these files are identical (44.1KHz, Stereo, 16bits, same duration).

I just tried opening the raw wave file in Audacity and converting it to aiff, but I got the same issue:

 SpringBoard[16673]: No alert sound found at path ‘/Users/stephen/Library/Application Support/iPhone Simulator/6.1/Applications/55F43DC5-BFD2-4436-92EF-D80DDA04F7EF/mza.app/chime2.aiff’

Just want to make sure you don’t have a filename case sensitivity issue.  In your post title the file name has mixed case, but your code shows it all lower case.

Yeah, that was the first thing I checked. The file names are exact. It’s really weird.

I figured it out. The notification system only allows a max length of 30 second audio files. Mine were 30.1.

Glad you figured it out!

I figured it out. For anyone else having this issue, you can’t put audio for notifications in subfolders – they must be in the root of the project.

EDIT:

Nope, still an issue. And it’s really weird. I have 6 .wav  files as my alert sounds, all in the root of the project (chime1.wav, chime2.wav, etc.). If I use chime1.wav or chime5.wav, it works. If I use any of the others, I get the default notification sound, and the console gives me the following error:

No alert sound found at path ‘/Users/stephen/Library/Application Support/iPhone Simulator/6.1/Applications/8BC20204-0157-441C-9C4B-649D7A2A2301/mza_test.app/chime2.wav’

I opened that path in the finder, and all my chime#.wav files are there and playable. And I use those files within the app while it’s active, so I know there’s no problem with them. I’m completely flabbergasted.  Please help!

I tried deleting those files that it couldn’t find and replacing them with copies of chime1.wav, and it works. So I guess there’s something about the wave files that the notification system doesn’t like. Does anyone know the notification sound requirements? As far as I can tell, the wave properties between these files are identical (44.1KHz, Stereo, 16bits, same duration).

I just tried opening the raw wave file in Audacity and converting it to aiff, but I got the same issue:

 SpringBoard[16673]: No alert sound found at path ‘/Users/stephen/Library/Application Support/iPhone Simulator/6.1/Applications/55F43DC5-BFD2-4436-92EF-D80DDA04F7EF/mza.app/chime2.aiff’

Just want to make sure you don’t have a filename case sensitivity issue.  In your post title the file name has mixed case, but your code shows it all lower case.

Yeah, that was the first thing I checked. The file names are exact. It’s really weird.

I figured it out. The notification system only allows a max length of 30 second audio files. Mine were 30.1.

Glad you figured it out!