criticalSoundNamed could not play .x-wav / .x-m4a files

Hi All

I have some customer sound file named as .x-wav / .x-m4a, when specify sound file with extension .x-wav, like content.sound = [UNNotificationSound criticalSoundNamed:@"mysound.x-wav" withAudioVolume: 1.0];

it will play defaultcrititicalsound.

if I tried

content.sound = [UNNotificationSound criticalSoundNamed:@"mysound.wav" withAudioVolume: 1.0];

then it worked

Accepted Reply

You can package the audio data in an aiff, wav, or caf file. Any other package or audio formats will need to be converted to match the above.

Replies

You can package the audio data in an aiff, wav, or caf file. Any other package or audio formats will need to be converted to match the above.