Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many uilocalnotifications can set at a time?

I am setting around 370 UILocalNotifications but I can only set 64...

 for(int i = 0 ; i<[arr count] ; i++){

        UILocalNotification* alarm = [[UILocalNotification alloc] init];


        // Create a new notification.
        if (alarm)
        {
            alarm.fireDate = indDate;
            alarm.timeZone = [NSTimeZone defaultTimeZone];
            //alarm.repeatInterval = NSMinuteCalendarUnit;
            alarm.soundName = @"alarmsound.caf";
            alarm.alertBody = @"Message";
            [app scheduleLocalNotification:alarm];
            [[UIApplication sharedApplication] scheduleLocalNotification:alarm];

        }
}
like image 747
RJV Kumar Avatar asked Aug 08 '14 04:08

RJV Kumar


1 Answers

Maximum limit is 64. I have also the same problem where i need to schedule many notifications. I have scheduled 64 notifications and when the app again opens I will schedule the remaining notifications.

For more Info

like image 111
Manish Agrawal Avatar answered Oct 03 '22 14:10

Manish Agrawal