Is the iOS Local Notification Limit Per Day?
Asked Answered
F

2

11

I'm working on an app where I need to send a good amount of notifications to the user daily. Around 5-40 depending on the user.

I'm using local notifications to send it, but I know there is a 64 notification limit. Does this mean 64 notifications per day, or in total?

Felid answered 16/11, 2017 at 0:13 Comment(5)
Are you using UILocalNotification, or the UserNotifications framework? You should prefer the latter (though it doesn't change the limit).Lefler
I am using UILocalNotification. It is deprecated now though. Should I change it?Felid
If you're just starting implementation, yes, absolutely, unless you plan to support iOS 9.Lefler
Just updated my post with the code that I am using. How do you suggest I update this to the UserNotifications. Not really planning on supporting iOS 9. Thanks!Felid
The conversion to UNNotificationRequest instead of UILocalNotification is straightforward. Look at UNMutableNotificatonContent. But please don't ask more than one thing in a question.Lefler
L
19

It means simultaneously scheduled for future delivery. You can send as many as you want per day, provided they don't overlap.

If you add more than 64 requests (under UserNotifications) or scheduled (under UIApplication/UILocalNotification), the older ones will be dropped and not delivered.

Lefler answered 16/11, 2017 at 0:58 Comment(4)
I am currently scheduling the notifications to repeat every day, wouldn't this imply infinite scheduled notifications? So would it not deliver them?Felid
It only depends on how many are on the scheduled list at any given time.Lefler
@JoshCaswell is this documented somewhere?Tonsillectomy
The count won't be different for different iOS versions? @LeflerLock
F
3

Unfortunately iOS limits the local schedule notification up to 64. May be to prevent this issue can schedule first group of notification initially and then schedule another group when launch the app next time.

Farquhar answered 25/6, 2019 at 23:54 Comment(3)
Is this documented anywhere in apple docs?Didymous
Source would be appreciatedJigging
Follow this apple documentation developer.apple.com/documentation/uikit/uilocalnotificationFarquhar

© 2022 - 2024 — McMap. All rights reserved.