oasis-wallet-web
oasis-wallet-web copied to clipboard
Optimize Bluetooth Ledger library on web/extension platform
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.