That’s a very creative approach — I hadn’t thought of doing it this way. However, the user experience seems a bit complex, with switching keyboards, triggering the signature, and then switching back — if I understood correctly.

Have you tried using Aegis? This is how I implemented background execution on iOS:

1. Start Aegis, which launches a lightweight local relay service (only handling signature-related tasks) and sets it as the NIP-46 signature relay.

2. Move the app to the background and loop a silent audio track to keep it running in the background

With this setup, other nostr apps can continuously use the local relay for signing operations. The user experience is quite similar to using Amber, except that the app must not be killed.

Reply to this note

Please Login to reply.

Discussion

The keyboard switching is just chatGPT being stupid.

You can just make a full keyboard/signer. Hitting “return” should be enough to trigger the entire workflow.

I tried Aegis. It’s not working for me.

I see, that makes sense — thanks for the clarification!

Which app did you use Aegis for signing with?

I’ve tested it with Nostur, Olas, 0xChat, and Flotilla — all of them work.

Hmmm… I’m using Olas.

Oh wait, I am on iOS26. So it might not be ready for this yet.