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?

jscs
  • 63,694
  • 13
  • 151
  • 195
Psonthalia
  • 179
  • 1
  • 12
  • Are you using `UILocalNotification`, or the `UserNotifications` framework? You should prefer the latter (though it doesn't change the limit). – jscs Nov 16 '17 at 00:30
  • I am using UILocalNotification. It is deprecated now though. Should I change it? – Psonthalia Nov 16 '17 at 00:44
  • If you're just starting implementation, yes, absolutely, unless you plan to support iOS 9. – jscs Nov 16 '17 at 00:52
  • 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! – Psonthalia Nov 16 '17 at 00:53
  • The conversion to `UNNotificationRequest` instead of `UILocalNotification` is straightforward. Look at `UNMutableNotificatonContent`. But please don't ask more than one thing in a question. – jscs Nov 16 '17 at 00:56

2 Answers2

18

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.

jscs
  • 63,694
  • 13
  • 151
  • 195
2

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.

Manoj Alwis
  • 1,337
  • 11
  • 24