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

Answered by DTS Engineer in 781150022

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.

Accepted Answer

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.

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