How can I repeat a UILocalNotification sound?
-(IBAction) scheduleNotification1 {
local1 = [[UILocalNotification alloc] init];
// create date/time information
local1.fireDate = [NSDate dateWithTimeIntervalSinceNow:2];
local1.timeZone = [NSTimeZone defaultTimeZone];
// set notification details
local1.alertBody = @"2!";
local1.alertAction = @"View";
//local1.soundName = UILocalNotificationDefaultSoundName;
//local1.soundName = @"alarmsound.caf";
local1.soundName = @"29.mp3";
// set the badge on the app icon
local1.applicationIconBadgeNumber = 1;
// local1.repeatInterval =NSSecondCalendarUnit;//// NSMinuteCalendarUnit;
//local1.repeatInterval =1 ;
// Gather any custom data you need to save with the notification
NSDictionary *customInfo = [NSDictionary dictionaryWithObject:@"ABCD2" forKey:@"yourKey1"];
local1.userInfo = customInfo;
// Schedule it!
[[UIApplication sharedApplication] scheduleLocalNotification:local1];
//[local1 release];
}
Please provide some sample code.
Sorry a7mad, I am afraid to say that but it is not Possible to Repeat the sound of UILocal Notification.I hope you have checked Other Questions Of SO. All of them have Negative result.
I can give you a suggestion to Call an Alert View Or ActionSheet on Click of “View” Button of LocalNotification and Continue your actions on that Controller as they can be controlled…