I am using custom sound in uilocalnotification in ios.
but its not play.
file is exist in Document folder.
notification is working with local.soundName= UILocalNotificationDefaultSoundName;
NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *path = [NSString stringWithFormat:@"%@/DingDongTone.wav",documentsPath];
local.soundName=path;
Please help.
thanks.
Please re-read what apple says –
according to this
filenameis thepathof file in resources ofmain bundlenot in thedocument directory