buttplug-rs-ffi
buttplug-rs-ffi copied to clipboard
WebBluetooth scanning doesn't throw when triggered without user gesture
Describe the bug
- Load buttplug WASM in a webpage on chrome
- Try scanning without a user gesture (on load, setTimeout, etc)
Expected behavior "User gesture missing" exception is thrown to the top, promise rejects
Actual behavior Promise resolves wihtout issue, but no scanning dialog.
Is there a workaround for this or an example of how to reproduce this? New to the project and looking for how to start.
I have all the code loaded in my app but I'm not exactly sure how to apply the examples I've seen to correctly initialize the bluetooth connection, request permission, etc.