-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deep-link nostrconnect:// URIs for NIP-46 #14
Comments
Do you know any application that uses nostrconnect URI? |
Just posted: nostr-protocol/nips#1153 |
Implemented in the 1.0.0 pre release You can also use:
instead of
This makes the qrcode smaller |
I'm trying it out. What happens on the Amber side after the deep-link happens? Does it send a message over the relay? |
The deep-link opens Amber, but then nothing happens. Here's the link:
Here's what I see in Amber after clicking the link: On Amber, my pubkey is Nothing happens on the relay either:
EDIT: Is the client perhaps supposed to send a |
NEVER MIND, my URL was wrong. It was missing the "description" property. Now it works. Thank you! |
I'll add some error messages when something fails |
In the original spec, They steamrolled it so hard in the rewrite. They didn't care about this auth flow at all. Even though I think it's the better one. We will have to go back and re-spec some of those things. I wonder what Nostrudel does. |
Nostrudel is not using the metadata tag. |
I didn't realize that the old spec had connect as an optional command. |
So I should be expecting to see an event from Amber come through on the relay? 🤔 This is the part I'm stuck on now. |
Yes it should send the event to the relay |
I can't seem to get it to connect to my relay. I tried with both a Relay network logs show no connection being attempted. I tried force closing and reopening the app. |
Try changing the notification type to direct connection in settings |
Here's what I'm seeing. It never makes a request to my relay. It doesn't even open the WebSocket connection. screen-20240512-142544.mp4 |
I tested with your relay and it sends a ok but never receives a response in nostrudel. |
No, but it does relay them when you filter by author. Eg:
This is what I see when I use NIP-46 between Soapbox (as the signer) and Ditto (as the app) In my relay logs I also see this, when that happens:
With Amber, I don't even see the |
Are you able to confirm that Amber makes outgoing connections to relays other than relay.nsec.app? |
yes just tested with relay.damus.io
|
Same thing happens with your relay but it never leaves the loading screen in nostrudel |
I wonder if it's somehow a connection issue between my phone. I'm running the latest APK from 2 days ago. I wish I could get debug logs from it more easily. It's the "free" version without Google Play. |
it should be connectinh when you press the grant permissions button |
I have Android Studio. Let me try. |
Relay on OK wss://relay.mostr.pub, 2d9bab3d66242658925cc868e45ea033c6fdcad0c1e36167c56114a082fed7ad, false, blocked: the event doesn't match the allowed filters |
Ah-hah!
|
Is this really just an Android permissions issue? |
no problem |
Now I am seeing the connect event come through! Thanks again! |
From NIP-46:
nostrconnect URIs should be deep-linked into Amber so it can establish a NIP-46 connection with clients.
The text was updated successfully, but these errors were encountered: