ok how the fuck do you build this single-click-it-opens-my-amber login flow?
Discussion
I wish I knew π
Why do I even have to click it?
Why can't apps just automatically detect that I have android signer(s)?
I think web apps can't. Native apps can
web app? the easy way is using https://github.com/nostrband/nostr-login or https://github.com/fiatjaf/window.nostr.js for using with remote login (bunker)
You can use or copy this library https://github.com/hzrd149/applesauce/blob/master/packages/signers/src/signers/amber-clipboard-signer.ts from nostr:nprofile1qy2hwumn8ghj7erfw36x7tnsw43z7un9d3shjqpqt228kfsq8h6ellckufmkg2g04sz8vw60vvpy3k8uslefm02xmu2qag9jc0 if you just want to call amber and dont care about remote login. The downside of this one is that you need the clipboard access and if you need to decrypt or sign a lot of things it will open amber every time with no way of calling it in background like native apps or remote login
I think I tagged the wrong npub here it was supposed to be nostr:nprofile1qqszv6q4uryjzr06xfxxew34wwc5hmjfmfpqn229d72gfegsdn2q3fgpzfmhxue69uhkummnw3e82efwvdhk6tcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszythwden5te0dehhxarj9emkjmn99urf278z
If you are using nip 46 you can also just send a href with the nostrconnect uri
https://github.com/nostr-protocol/nips/blob/master/46.md#direct-connection-initiated-by-the-client
I do signin with nip55. Works also with signer on desktop.