getAlby / lightning-browser-extension

The Bitcoin Lightning Browser Extension that brings deep Lightning & Nostr integration to the web. Wallet interface to multiple lightning nodes and key signer for Nostr, Liquid and onchain use.
https://getalby.com/#extension
MIT License
539 stars 194 forks source link

Connection failed. i(...).runtime.connectNative is not a function #649

Closed n-e-t-d-i-v-e-r closed 2 years ago

n-e-t-d-i-v-e-r commented 2 years ago

Describe the bug I’ll trying to connect my private lightning-node with alby but after I inserted all credentials I copied from zeus-wallet (where my fullnode also is connected) I get alert mentioned in the ticket title.

To Reproduce At last step from the onBoarding process in BraveBrowser.

Expected behavior OnBoarding will ending as expected and I can use Alby with my own lnd-fullnode on my Raspibolt.

Information About Alby

Screenshots (If Any)

Screenshot 2022-03-02 at 14 52 19 Screenshot 2022-03-02 at 15 18 12

Device Information [optional]:

escapedcat commented 2 years ago

Is this an Onion-Address? I'm not sure if this is supported right now. Is it @bumi ?

n-e-t-d-i-v-e-r commented 2 years ago

yes it is. so that means I don’t have a chance to install alby on my website until you implement more privacy? thx for your answer and hope you will support onion-addresses soon.

maybe it is a good idea to inform on your homepage, that onion-addresses won’t work so far ...

escapedcat commented 2 years ago

maybe it is a good idea to inform on your homepage, that onion-addresses won’t work so far ...

Agreed. Let's wait till bumi confirmed or denied this and update readme and maybe roadmap (if existing).

n-e-t-d-i-v-e-r commented 2 years ago

OK. if it isn’t implemented yet I would suggest this as a feature request. 😜

bumi commented 2 years ago

Thanks for this issue and sorry that you ran into this. Tor connections are a bit tricky because the browsers do not natively support Tor. You would need to run Tor on you computer and proxy all requests through it. Because this is annoying and too complicated we have built an Alby app to support nodes behind Tor.

This is currently in the release process and the extension does not yet check if this App is available - it just assumes it is there. That's why you run into this issue. In the upcoming release this should be fixed and you will get a nice message to download that Tor support.

Until then:

It would be super amazing if you can help testing this setup and let us know if this works for you.

n-e-t-d-i-v-e-r commented 2 years ago

thx for your response. but unfortunately I’ll get the same alert after installing alby over the downloaded file:

Screenshot 2022-03-05 at 08 31 59 Screenshot 2022-03-05 at 08 48 59

did I something wrong with the installing process? should I upload it in some repository instead of klick the install-button on your homepage after klicking install on the downloaded app?

bumi commented 2 years ago

hmm. thanks for testing. did you restart brave? or can you try restarting it?

n-e-t-d-i-v-e-r commented 2 years ago

after restart I’ll get this

Screenshot 2022-03-05 at 11 12 21

but that’s strange. because I copied the credentials out from my zeus-lnd-raspibolt configuration and zeus-wallet works perfect with it ...

bumi commented 2 years ago

ok, interesting. thanks so much for helping debugging! :) in the address do you have the port there? (our explanation is not really good there in the current version) so it should be something like: https://xxxx.onion:8080

n-e-t-d-i-v-e-r commented 2 years ago

same result ... MacOS: 12.0.1 Brave Version: 1.32.115

bumi commented 2 years ago

ok, any chance you can try Firefox? to identify if it is Brave related or generally. if you want we can also chat on Telegram or somewhere else.

n-e-t-d-i-v-e-r commented 2 years ago

SUCCESS! with firefox it went well and easy going

Screenshot 2022-03-05 at 11 52 05

but where does this sats coming from? now i have to try to connect my website with this and testing how it works. what should change on my website and where will I find this alby-integration?

n-e-t-d-i-v-e-r commented 2 years ago

btw: we can communicate for sure on telegram, what’s your chat room there?

n-e-t-d-i-v-e-r commented 2 years ago

next «issue». where can I configure my hompage to receive sats from visitors? on settings I can’t finde something like that ...

Screenshot 2022-03-05 at 12 51 17
bumi commented 2 years ago

great! so I have to look into Brave and what's different there.

so you now have Alby connected to your Umbrel node and can directly send/receive Sat from your browser. This works best on WebLN enabled websites. https://makers.bolt.fun/ is a directory with some examples. You can also send Sat to users that have lightning details on their Twitter profile, or in YouTube videos etc. (e.g. https://twitter.com/dergigi or https://www.youtube.com/c/KoreacomK )

To receive Sat on your website you have to add lightning details to the HTML of your website: https://getalby.com/value4value For example https://nodesignal.space/ did this. It is a simple HTML meta tag that you need to add. This meta tag then tells a visitor with Alby where the Sat can be sent to.

Do you have a lightning address already?

n-e-t-d-i-v-e-r commented 2 years ago

to be honest, I’m not sure. I’m new on lightning, but I have a lightning fullnode running on my raspibolt so I think I will find this lightning address somwhere in ride the lightning?

On 5 Mar 2022, at 12:56, Michael Bumann @.***> wrote:

great! so I have to look into Brave and what's different there.

so you now have Alby connected to your Umbrel node and can directly send/receive Sat from your browser. This works best on WebLN https://webln.dev/ enabled websites. https://makers.bolt.fun/ https://makers.bolt.fun/ is a directory with some examples. You can also send Sat to users that have lightning details on their Twitter profile, or in YouTube videos etc. (e.g. https://twitter.com/dergigi https://twitter.com/dergigi or https://www.youtube.com/c/KoreacomK https://www.youtube.com/c/KoreacomK )

To receive Sat on your website you have to add lightning details to the HTML of your website: https://getalby.com/value4value https://getalby.com/value4value For example https://nodesignal.space/ https://nodesignal.space/ did this. It is a simple HTML meta tag that you need to add. This meta tag then tells a visitor with Alby where the Sat can be sent to.

Do you have a lightning address already?

— Reply to this email directly, view it on GitHub https://github.com/getAlby/lightning-browser-extension/issues/649#issuecomment-1059750128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU57UQEZNECZMSPVMIWIGP3U6NDW7ANCNFSM5PXREXDA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

n-e-t-d-i-v-e-r commented 2 years ago

btw: my website is an wordpress-blog-page and I would connect alby with all blog-posts on this URL: www.bitpartikel.com http://www.bitpartikel.com/ and all sub URL. should i add on every single link this «simple HTML tag»?

On 5 Mar 2022, at 12:59, NetDiver @.***> wrote:

to be honest, I’m not sure. I’m new on lightning, but I have a lightning fullnode running on my raspibolt so I think I will find this lightning address somwhere in ride the lightning?

On 5 Mar 2022, at 12:56, Michael Bumann @. @.>> wrote:

great! so I have to look into Brave and what's different there.

so you now have Alby connected to your Umbrel node and can directly send/receive Sat from your browser. This works best on WebLN https://webln.dev/ enabled websites. https://makers.bolt.fun/ https://makers.bolt.fun/ is a directory with some examples. You can also send Sat to users that have lightning details on their Twitter profile, or in YouTube videos etc. (e.g. https://twitter.com/dergigi https://twitter.com/dergigi or https://www.youtube.com/c/KoreacomK https://www.youtube.com/c/KoreacomK )

To receive Sat on your website you have to add lightning details to the HTML of your website: https://getalby.com/value4value https://getalby.com/value4value For example https://nodesignal.space/ https://nodesignal.space/ did this. It is a simple HTML meta tag that you need to add. This meta tag then tells a visitor with Alby where the Sat can be sent to.

Do you have a lightning address already?

— Reply to this email directly, view it on GitHub https://github.com/getAlby/lightning-browser-extension/issues/649#issuecomment-1059750128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU57UQEZNECZMSPVMIWIGP3U6NDW7ANCNFSM5PXREXDA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

n-e-t-d-i-v-e-r commented 2 years ago

and btw where to find and how to integrate this?

Screenshot 2022-03-05 at 13 09 41
n-e-t-d-i-v-e-r commented 2 years ago

does this also works with an LNURL wallet?

On 5 Mar 2022, at 12:56, Michael Bumann @.***> wrote:

great! so I have to look into Brave and what's different there.

so you now have Alby connected to your Umbrel node and can directly send/receive Sat from your browser. This works best on WebLN https://webln.dev/ enabled websites. https://makers.bolt.fun/ https://makers.bolt.fun/ is a directory with some examples. You can also send Sat to users that have lightning details on their Twitter profile, or in YouTube videos etc. (e.g. https://twitter.com/dergigi https://twitter.com/dergigi or https://www.youtube.com/c/KoreacomK https://www.youtube.com/c/KoreacomK )

To receive Sat on your website you have to add lightning details to the HTML of your website: https://getalby.com/value4value https://getalby.com/value4value For example https://nodesignal.space/ https://nodesignal.space/ did this. It is a simple HTML meta tag that you need to add. This meta tag then tells a visitor with Alby where the Sat can be sent to.

Do you have a lightning address already?

— Reply to this email directly, view it on GitHub https://github.com/getAlby/lightning-browser-extension/issues/649#issuecomment-1059750128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU57UQEZNECZMSPVMIWIGP3U6NDW7ANCNFSM5PXREXDA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

MoritzKa commented 2 years ago

may I ask where did you find this picture? We created several of these icons. You can download them here: https://github.com/getAlby/media/tree/main/Alby-tipping-buttons

I guess you have to put the meta tag on each page of your website where you want to receive sats. A Lightning address is based on LNURL and this lightning address is what you need for your meta tag.

You can get one here: https://getalby.com/lightning-address . You can connect your own node to it and soon nodes behind TOR. These videos describe how it works.

n-e-t-d-i-v-e-r commented 2 years ago

sry. last try. which videos? I think I will give up and goes for a walk now … ;O)

On 5 Mar 2022, at 14:49, Moritz Kaminski @.***> wrote:

may I ask where did you find this picture? We created several of these icons. You can download them here: https://github.com/getAlby/media/tree/main/Alby-tipping-buttons https://github.com/getAlby/media/tree/main/Alby-tipping-buttons I guess you have to put the meta tag on each page of your website where you want to receive sats. A Lightning address is based on LNURL and this lightning address is what you need for your meta tag.

You can get one here: https://getalby.com/lightning-address https://getalby.com/lightning-address . You can connect your own node to it and soon nodes behind TOR. These videos describe how it works.

— Reply to this email directly, view it on GitHub https://github.com/getAlby/lightning-browser-extension/issues/649#issuecomment-1059768552, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU57UQHEAMLRAUKJQVIDV43U6NQ6XANCNFSM5PXREXDA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.

MoritzKa commented 2 years ago

No worries. The videos are linked in last line of my comment above or here: https://www.youtube.com/channel/UCIICdm6mox3VkCAv-yHMeMw/videos Happy to give you a walk through the Lightning address portal. just ping me moritz@getalby.com. Ich finde die Artikel auf deiner Seite klasse. We should get this going.

n-e-t-d-i-v-e-r commented 2 years ago

alby is not yet integrated on my website as desired, but could at least be installed in the browser. therefore i am closing this ticket.