I have been searching for a solution for hours.. with absolutely zero luck.
I set up a Local Notification:
UILocalNotification *notif = [[cls alloc]
Try this:
notif.soundName = [strSoundFileName copy];
are you cleaning the old notifications with
UIApplication* app = [UIApplication sharedApplication];
NSArray* oldNotifications = [app scheduledLocalNotifications];
// Clear out the old notification before scheduling a new one.
[app cancelAllLocalNotifications];
?
ANSWER:
Nothing wrong with the code..
It's just that the stupid iPhone didn't cancel the old notifications that I made with the default sound -_-;
When I cleaned the project, deleted the app from the phone AND REBOOTED the phone THEN it worked..
Hope someone finds this helpful.