The worst part of this Push Notification development will be making options available:

1. when to notify: DMs? zaps? follows only? lists? individual mute per author per event kind?

2. how to notify: sound, vibration, group summaries or individual notes, exposing data or not exposing data, etc.

I will be developing options UI forever... :(

Let's hope other devs join the effort. #BountiesNeeded

Reply to this note

Please Login to reply.

Discussion

Why not just let people configure this with notify.lol website?

I wish I could help you. Frontend and app development is something I never did 😡

Mentions, DMs and Zaps with a customisable ringtone. Fin.

I’m guessing they will need rate limiting too - in case something blows up. Perhaps someone’s DMs go wild for example - maybe that’s ok for a back and forth, however not ok for a DM flood attack.

Strangely the rate limit may need to be dynamic per pubkey.

However, what is your event firehouse for notifications? A relay aggregation service? Targeting only a pubkey’s 10002 read relays? How do their private/encrypted relays work? It’s all very complex.

Personally I prefer async comms - and disable notifications.

I learned my lesson when my phone started to ping every second when a tweet blew up: you don't need to get notified on everything.

yep

Sad!

Any preferred alternative? I tested a few but they were very spotty.

Need to use your own foreground service like signal does (in absence of FCM) or like #[5]​​ does all the time: https://simplex.chat/blog/20220404-simplex-chat-instant-notifications.html

Personally, I use https://unifiedpush.org/ via https://github.com/binwiederhier/ntfy app on my phone which lets you receive and distribute push notifications to any app that speaks unified push. Dev-friendly intro for Android here: https://unifiedpush.org/developers/android/.

I run my own self-hosted ntfy server, but people who don't want to do that but prefer to support a really nice OSS project than to bend over for Google can use ntfy pro for a small monthly fee: https://ntfy.sh/app

+1 for unifiedpush. But I don't see how this can work in nostr, will there be an Amethyst server pushing notifications to FCM or UP? Or there is a NIP for relays to send them?

If I understand it correctly, at the moment nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z is running a single server that is scanning a lot of relays and then pushing to FCM.

Yep... Does anybody want to do a similar server for unipush?

It would be cool to choose between everything mentioned, though I don't know how harder it is to implement πŸ˜…

Provide an options and let client decide about it. The question is how to ensure the nozification will come to all clients user uses even across platforms and that they will come only ones regardless how much relays will implement and support it. A dedicated relay for notification?

Thank you for the work you're doing for us all!

You know #UnifiedPush and ntfy.sh for Notifications for selfhosters?