Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qdot opened this issue Dec 30, 2020 · 1 comment
Open
Assignees
Labels
bug Something isn't working WASM WASM layer for js/ts

Comments

@qdot
Copy link
Member

qdot commented Dec 30, 2020

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 qdot added bug Something isn't working WASM WASM layer for js/ts labels Dec 30, 2020
@qdot qdot self-assigned this Dec 30, 2020
@ftreesmilo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working WASM WASM layer for js/ts
Projects
None yet
Development

No branches or pull requests

2 participants