oasis-wallet-web icon indicating copy to clipboard operation
oasis-wallet-web copied to clipboard

Optimize Bluetooth Ledger library on web/extension platform

Open lubej opened this issue 1 year ago • 2 comments

The following dependency should be dynamically loaded:

  • @oasisprotocol/ionic-ledger-hw-transport-ble

Either that, or integration with Bluetooth should be made on web/extension version of the wallet.

This sample in particular:

  • https://googlechrome.github.io/samples/web-bluetooth/scan.html
  • https://googlechrome.github.io/samples/web-bluetooth/index.html - general docs

Note: Scanning is still under development. You must be using Chrome 79+ with the chrome://flags/#enable-experimental-web-platform-features flag enabled.

If in the meantime the above is fixed, the library can stay. Otherwise navigator.bluetooth.requestDevice should be used to add support for Bluetooth Ledger on web/extension platforms.

lubej avatar Feb 14 '24 14:02 lubej