sheltermanager / asm3

Animal Shelter Manager
GNU General Public License v3.0
109 stars 66 forks source link

Notification framework #760

Open bobintetley opened 4 years ago

bobintetley commented 4 years ago

Notifications exist as an HTML 5 feature.

The timeline elements could optionally be notifications and would make a lot of sense.

The question is over how this would be implemented - probably some kind of ajax poll loop from the loader in common.js. It pulls the timeline every 10 minutes or so and shows a notification for anything on the timeline the user hasn't seen. We need some kind of generatable ID for each time line event - probably the event name and ID should do it.

Notification API

bobintetley commented 3 years ago

while interesting technically, we don't actually have much of a use for this at the moment

bobintetley commented 1 year ago

a poll loop in common.js could break when you had multiple tabs open. It would need a way to detect if it was already running in another tab and not start itself again.