Updating Notifications

When updating Notifications, is it best practice to delete and reset all of them, or just delete and reset the Notifications that need to change? We have data coming from multiple sources, and as a result, we are often updating the notifications. This can be several times in under 10 seconds.

Thanks for asking! A couple follow-up questions:

  • What's the use case here?
  • What user experience are you trying to achieve?

It's a calendar app with multiple calendars. We diff the notifications to avoid continually deleting and creating the notifications. The naive way would be to delete all notifications for a particular calendar and replacing them all whenever an update comes in. The goal, of course, is to have up to date notifications that fire when they should, and avoiding stale notifications.

Updating Notifications
 
 
Q