stayradiated / clickandcollect.nz

Tracking NZ supermarket click & collect slots
https://clickandcollect.nz
MIT License
13 stars 0 forks source link

As a user I want to receive a notification when a new slot appears #3

Open stayradiated opened 4 years ago

stayradiated commented 4 years ago

I am considering a notification system, so you can get an alert when a supermarket releases new slots. It would be a challenge to implement a notification system that is actually useful to people.

Occasionally, there will be a glitch in the response from the supermarkets, and it will appear that there are suddenly no slots available, or every day has slots. This will cause issues.

I’m thinking something along the lines of:

look at the next X days
only send a notification if there have been no slots in those X days for at least Y hours
and the number of slots has increased from 0 to Z slots
and the number of slots has been stable over 5 minutes (i.e. not a glitch)

I think I can also get notifications to work without needing a server, using the Notification API and Service Workers…

stayradiated commented 4 years ago

So, it looks like iOS doesn't support web notifications at the moment... Not having mobile notifications are a deal breaker.

I am going to stand up a server to send emails instead.

stayradiated commented 4 years ago

I'm thinking that when someone subscribes to notification, they will be able to choose:

There are other variables I need to consider as well: