Im integrating local notification into my app.
It is working fine.
But client want to use a different sound for local notification.
I drag and drop the file into the supporting files of xcode
Can anyone please help me how to do this.
code
AlocalNotifas.soundName = @"cling.wav";
localNotifas.soundName = [[NSBundle mainBundle] pathForResource:@"cling" ofType:@".wav"];
// [localNotifas setSoundName:[[NSBundle mainBundle] pathForResource:@"cling" ofType:@"wav"]];
// [localNotifas setSoundName:UILocalNotificationDefaultSoundName];
Can you experts please show me where im going wrong.
Remember that your notification sounds may not be longer than 30 seconds – if the file supplied is longer, nothing will sound.
Also, check the sound in some external player first, and best convert it to .caf format.
To convert a file to .caf, open up terminal, go to where you have your sound stored and type in:
Then just set it like: