Does anybody know how to provide an invoice to mobile apps like nostr:npub1hcwcj72tlyk7thtyc8nq763vwrq5p2avnyeyrrlwxrzuvdl7j3usj4h9rq from a PWA? I know desktop can use webln but how can I do this on mobile?

#typscipt #pwa #asknostr #dev #devs #zaps #lightning #webln

Reply to this note

Please Login to reply.

Discussion

Call the API of the lightning node?

I believe we do this to retrieve the invoice but from there need to make a call to a app on mobile to actually make the payment. So basically from a browser (PWA) to local mobile wallet app like WoS.

Not sure this is possible right now..

You'll have to go through the mobile OS wallet selector using a custom url scheme I believe. This requires a user interaction though. Or Nostr Wallet Connect could be an alternative solution.

Thank you! This helps a bit. I will look into how to call the mobile OS wallets from a PWA. Nostr wallet connect is interesting though, will consider it as well.