Closed rolznz closed 11 months ago
I got this error in iOS PWA
@nicky-dev what iOS version are you using?
@nicky-dev what iOS version are you using?
iOS Version: 16.7
Hmm. It works fine for me on 16.3.1. That is just when you connected to your wallet, right?
I'll create an issue and let you know if I can reproduce it or find a fix.
@nicky-dev does it also happen when you access the site from Safari rather than with the PWA?
It happens when using the PWA.
@nicky-dev did you install the PWA from a secure HTTPS context? like a ngrok https:// URL?
I have the same issue when I save the PWA for http://localhost:3000 (on iOS. On desktop it works fine)
I made a PR for the fixes here: https://github.com/verbiricha/habla.news/pull/114
@nicky-dev did you install the PWA from a secure HTTPS context? like a ngrok https:// URL?
I have the same issue when I save the PWA for http://localhost:3000 (on iOS. On desktop it works fine)
Thanks @rolznz, It work from ngrok https.
window
does not exist. I'll have a look.webln.enabled
is checked at https://github.com/verbiricha/habla.news/blob/main/src/components/ZapModal.tsx -enabled
is an internal variable (and does not exist on some webln instances, like bitcoin connect NWC). Thestandardrecommended method is to try to await webln.enable(), and if it fails (an exception is thrown) then use the fallback QR / open wallet approach.Reference: https://webln.guide/