Skip to content

Commit

Permalink
doc: add more FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored Aug 18, 2023
1 parent c9dada6 commit 868026a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ We are happy to help, please contact us or create an issue.
- Read the [Alby developer guide](https://guides.getalby.com/overall-guide/alby-for-developers/getting-started) to better understand how Alby packages and APIs can be used to power your app.

## FAQ
- Does this work on mobile browsers and mobile PWAs, or desktop browsers without a WebLN extension?

Yes! that's the main benefit.

- Does it work with a desktop extension enabled?

Yes. But it will use the desktop extension as the default connector if it exists.

- Can I connect it to my mobile wallet?

Probably not. The connection to your lightning node / wallet needs to be asynchronous so that you can use Bitcoin Connect natively on mobile websites or PWAs.

- Does it work for any user with any lightning wallet?

It will only work for the connectors that are shown in the modal. Feel free to contribute to add a new connector.
Expand All @@ -154,6 +166,13 @@ Yes. Your connection is saved to localStorage

You should have a certain level of trust on the website you decide to connect your wallet with, and that they ensure there is no malicious third-party scripts which would intend to read the wallet connection configuration, either from memory or storage. Connectors with budget controls or confirmation dialogs (Alby extension or NWC) are recommend so you have full control over your connection.

- What are the high level things I need to do to add this to my site?

1. add the "Connect Wallet" button
2. wait for a connection event (using window.addEventListener) and then request to pay the invoice with window.webln



# 🔥 Lit

This project is powered by Lit.
Expand Down

0 comments on commit 868026a

Please sign in to comment.