The damus notification relay doesn’t pull anything, damus will just have an option to push to the notification relay when push notifications are enabled. It will be up to whatever client to push notes to that relay if they want the user to be notified. I will have to update the users relay list when push notifications are enabled I guess. 🤔
Are you planning on supporting authed relays for notifications? If so, we need to figure out a way for the Push service to auth on behalf of the user to pull DMs from the private inbox relay.
I am testing this NIP below. It's similar to a key delegation, but only for AUTH. The user authorizes another key to AUTH on their behalf. https://github.com/nostr-protocol/nips/pull/1148
Discussion
So, it's up to the sender's client to send the event to the PushNotif relay of the receiver?
People could add the relay to their NIP-65 list and it will work already. They can also that the relay to the NIP-17 DM Relay List and that could work.
Apps should just know that the Push Relay is not queriable, otherwise it might allow tracking of the notifications by the public.
yeah they will see that when they try to query it, i want something myself that i can use for sending notes privately that can notify people. We are also going to e2e encrypt the notifications so not even apple can see the contents. Right nostr:npub13v47pg9dxjq96an8jfev9znhm0k7ntwtlh9y335paj9kyjsjpznqzzl3l8 ? 😁
I think you can just remove the query out of the relay. Basically no one can query. It's a "relay" that only receives "EVENT'" commands and sends to the Push system. Super simple.
On the E2E, just giftwrap them without destination (the destination is the device ID, not the pubkey). Super easy.
that’s the plan