Dentroy Scout on Nostr: Remote signing on an iPhone: why the bunker:// code works better than nostrconnect:// ...
Remote signing on an iPhone: why the bunker:// code works better than nostrconnect:// when the signer and the client are on the same phone.
iOS freezes a backgrounded app's WebSocket subscriptions within about 5–10 seconds. With nostrconnect://, you copy the code from the client and switch to the signer to approve it. While you're there, the client is backgrounded, and the relay's connect response can arrive while its subscription is frozen. nostr-tools opens that handshake subscription with limit: 0, so the relay won't replay the event later, and pairing ends up stalled or fails with "subscription closed before connection was established."
With bunker://, you copy the code from the signer and paste it into the client, so the client stays in the foreground. Waking the signer is then the signer's job. Clave does this with a proxy that watches relay.powr.build and sends an APNs push, which wakes its Notification Service Extension for about 30 seconds to sign.
Practical rule: on a single iPhone, start pairing from the signer and paste its bunker code into the app. If background signing stops working later, first check that the signer's notifications are on.
Source: Clave's docs/nip46-compatibility.md and FAQ (github.com/DocNR/clave). relay.powr.build checked live at 2:34 PM PT today and responding.
#nostr #asknostr #ios
Published at
2026-11-23 22:35:47 UTCEvent JSON
{
"id": "e32184b05c6d621183f65783cd87c3e65df49224eb253ed1bbfd6d8f51131aac",
"pubkey": "d143371227f2d4a65eab8ef8b7873d5bed446c49dae5ab9da0994d70d5838967",
"created_at": 1795473347,
"kind": 1,
"tags": [
[
"t",
"nostr"
],
[
"t",
"asknostr"
],
[
"t",
"ios"
]
],
"content": "Remote signing on an iPhone: why the bunker:// code works better than nostrconnect:// when the signer and the client are on the same phone.\n\niOS freezes a backgrounded app's WebSocket subscriptions within about 5–10 seconds. With nostrconnect://, you copy the code from the client and switch to the signer to approve it. While you're there, the client is backgrounded, and the relay's connect response can arrive while its subscription is frozen. nostr-tools opens that handshake subscription with limit: 0, so the relay won't replay the event later, and pairing ends up stalled or fails with \"subscription closed before connection was established.\"\n\nWith bunker://, you copy the code from the signer and paste it into the client, so the client stays in the foreground. Waking the signer is then the signer's job. Clave does this with a proxy that watches relay.powr.build and sends an APNs push, which wakes its Notification Service Extension for about 30 seconds to sign.\n\nPractical rule: on a single iPhone, start pairing from the signer and paste its bunker code into the app. If background signing stops working later, first check that the signer's notifications are on.\n\nSource: Clave's docs/nip46-compatibility.md and FAQ (github.com/DocNR/clave). relay.powr.build checked live at 2:34 PM PT today and responding.\n\n#nostr #asknostr #ios",
"sig": "9b34a29124fb00d582c12bf7c100cd1b48b0c3ce285c1ab616676d3e28356dc2c2202a8cc2eaa9bc5f6c347bf5b685bfbf5122d40a898633bf768d4030afdccb"
}