Hey, nostr:npub1cmmswlckn82se7f2jeftl6ll4szlc6zzh8hrjyyfm9vm3t2afr7svqlr6f, we’re in a bit of a pickle here with the NIP-07 login on a PWA. Is there a workaround to enable extension to support NIP-07 login in an app added to the home screen (not in the browser itself)?

cc nostr:npub1alpha9l6f7kk08jxfdaxrpqqnd7vwcz6e6cvtattgexjhxr2vrcqk86dsn

Reply to this note

Please Login to reply.

Discussion

On iOS, I’m using nostore safari extension.

As the extension lives on safari, log in with 07 works if running app in safari, after enabling.

From PWA (after adding to Home Screen), the login won’t work, the error I’m getting is that, it’s unable to find a nip07 signer.

Thanks #[2]

Yea. I tested that. But the adventure focus here is PWA. If we could figure this out, will be a step for nostr apps.

From what I understand, nip-07 extension signing is not possible in PWA because browsers don't load the extensions in the app mode. May be I am wrong here too.

nsec bunker seems be a possible usecase here. But it can be too complicated for a novice user who just wants to use an app with minimal setup.

Other then extensions, are there native apps for signing on ios?

Do you think it’s the same case on android? (I haven’t test it out on android)

I know nostr:npub1plstrz6dhu8q4fq0e4rjpxe2fxe5x87y2w6xpm70gh9qh5tt66kqkgkx8j guys are working on it, but it’ll take a couple more months 😅

Any chance it’ll be ready this week, nostr:npub1atc6zwsr9nnyn0rq72g2qqznr3x4yhm20g50wsexjukygwrg9atqh0lssy ? 😂

🤣

Not at all :) there is a text box where we can input our nsec 🙂 it has masked characters in input though

Yes, nostr:npub1w4sf3hsedukh33akdn5duld2yc5jlk6s02shur8553j0a59sm3jscws08a created Nostrum but sadly hasn’t had much traction.

I’d love something like this to manage nostr identities/signing kind of like how Apollo does for Reddit

https://github.com/nostr-connect/connect

Wow. Thanks for the heads up. It somehow went below my radar.

Thanks for your reply. It sucks that Brave desktop allows me to sign with an extension even after I download an app, yet it’s mobile version does not support extensions.

Building on #Nostr seems to require rebuilding Web 2.0 too 😅

I am sure our community will find a solution sooner than we expect 🙂

Nostr dev community is filled with magicians 🪄

On iOS, PWA’s run in a separate WebKit instance which does not support extensions.

So yeah, a challenge.

Probably Web Cryptography API or such is required to minimise XSS risk of localStorage or IndexedDB.

Extensions work seamlessly in PWAs on Android and PC, but currently, the iOS PWA WebKit does not support extensions.

However, Apple is planning to add extension support in the future. Additionally, there are other solutions being developed, such as NsecBunker by Pablo.

Happy to hear about Android support for PWAs!

The irony of iOS not supporting them while Apple behaves the way they do though 😏