mjl- / gopherwatch

keep tabs on Go modules
https://www.gopherwatch.org
MIT License
25 stars 2 forks source link

Notifications by Web Push #24

Open mjl- opened 7 months ago

mjl- commented 7 months ago

We could send notifications to users through Web Push. Probably add a button in the dashboard to enable it. User confirms. We get URL to post notifications to. For each matching module, send the notification.

Web Push suggested by @koenbollen at the Go Amsterdam meetup yesterday.

koenbollen commented 7 months ago

A reason for me to suggest this is so I don't have to give my email address. Would be nice if you could create an account without sharing your email address, e.g. using passkeys. Then it makes more sense to use Web Push notifications.

mjl- commented 7 months ago

I had a quick look at web push, but don't yet know if it's possible to create an "anonymous" subscription. Because why would you even need an account to get notified? From the gopherwatch-side, we could just have association of module path with a web push subscription to notify.

Passkeys could be a useful thing for all accounts.

Though I wonder if web push is really that great for users. I like the email because it is async. I can read it a bit later. The notifications aren't urgent. If they are like on a phone, I would probably often not read them...

koenbollen commented 7 months ago

I had a quick look at web push, but don't yet know if it's possible to create an "anonymous" subscription. Because why would you even need an account to get notified? From the gopherwatch-side, we could just have association of module path with a web push subscription to notify.

Maybe only so you can manage all your subscriptions in one account.

Passkeys could be a useful thing for all accounts.

Yes! They are (going to be) awesome!

Though I wonder if web push is really that great for users. I like the email because it is async. I can read it a bit later. The notifications aren't urgent. If they are like on a phone, I would probably often not read them...

Fair point.