buttplug-rs-ffi icon indicating copy to clipboard operation
buttplug-rs-ffi copied to clipboard

WebBluetooth scanning doesn't throw when triggered without user gesture

Open qdot opened this issue 4 years ago • 1 comments

Describe the bug

  1. Load buttplug WASM in a webpage on chrome
  2. 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.

qdot avatar Dec 30 '20 23:12 qdot

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.

ftreesmilo avatar Jan 13 '21 23:01 ftreesmilo