buttplugio / buttplug-rs-ffi

FFI from buttplug-rs to Java and other languages
Other
89 stars 22 forks source link

WebBluetooth scanning doesn't throw when triggered without user gesture #42

Open qdot opened 3 years ago

qdot commented 3 years ago

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.

ftreesmilo commented 3 years ago

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.