I think i found how to generate invite codes, but i still cant successfully receive alerts even after inputting the invite code as part of my alert setup
nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn im testing latest flotilla. Trying to get the new notifications to work with my nip 42 relay. I think im not getting them because i dont have an invite code for my space, perhaps? How do i generate an invite code for my space as the owner of the relay ( relay.tools relay) ?
Discussion
I don't have a great story for troubleshooting this yet. Probably would have to add something to anchor to check for access. Best thing to do is open flotilla in an incognito window, create a new account, and try joining your space using the invite code. Let me know how that goes, I'm happy to help and/or update stuff
i did try this. it was interesting the invite code works for me to connect, but since i have nip 42 auth on the relay, none of the content was visible until a whitlisted the npub. Desktop when I try and add an alert it says 'error: Service Worker not supported'. Tried sending some messages to my account on android via the desktop, still not getting any push notifications (tried turning off nip 42 auth but still no luck).
If you have more questions or want help testing I'm happy to help but i also understand if this is enough on this for now 😅
Probably multiple things are going on here:
- Invite codes are pretty non-standard, probably the only relay that supports them is frith, which I don't think relay.tools uses. If you're manually adding pubkeys to a white list, that means invite codes aren't adding the pubkey automatically. Try adding anchor's public key to your whitelist (27b7c2ed89ef78322114225ea3ebf5f72c7767c2528d4d0c1854d039c00085df).
- Is the service worker error only in incognito? Or are you using firefox? More details on that would be helpful.
- Anchor won't send push notifications for events signed by you, so you'd have to test from another account.
I just did a lot of testing, this time I used a nostr relay tray (https://github.com/CodyTseng/nostr-relay-tray) to test and was able to get notifications to work , which was pretty cool to see. Notifications don't work for DMs between two users, which I think for what is set up makes sense as it is out of scope of the alert set up. But, I think yo should add a checkbox to add DMs as an option to be alerted of any DMs (looks like kind 14/1059) that come through on the relay too.
I got notifications to work successfully with my relay.tools relay as well on my android phones. Not sure how i fixed it, but works with and without auth 🤙
I am having a heck of a time uploading media in flotilla though...tried using several media servers ( nostr.media, nostr.build, paid cdn.satellite.earth sub ) but it seems to rarely work...provides 'failed to upload file' as the error message.