Yes, you can add another sound file.
NSString * soundFile=@ "temp.mp3"; UILocalNotification* localNotification = [[UILocalNotification alloc] init]; if (localNotification==nil) { return; } localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:60]; localNotification.alertBody = @"Your alert message"; localNotification.soundName = soundFile; localNotification.timeZone = [NSTimeZone defaultTimeZone]; [[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
In the above code, simply enter the name of the sound file that you saved in your resources instead of the string "soundFile".
source share