-
Notifications
You must be signed in to change notification settings - Fork 55
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
Permission for bluetooth scan #3670
Comments
Thanks for reporting the issue and sorry you are running into it. I've assigned this to a dev who can help follow up on this. |
@ray007 Hi ray, can I further understand the following:
Thank you! |
Not sure why the context matters, but all right: The permission dialog showed a quite ugly list, after which getting scan advertisements didn't always work. Independent of context: shouldn't all permissions/dialogs be in the API? |
Just to make sure I understand, you would like an API that you can use to create the bluetooth scan UI by yourself? If so, I can understand why you would need an API that allows you to control the underlying functionality of the dialog
All Web APIs, like the Web Bluetooth API, are available for you to use. But that triggers the default web dialog, like how it would in Chromium browsers. For situations where a developer, like yourself, want to bypass the typical browser permission dialogs, we would need to create specific APIs that allow developers to do that. This issue is already tracked (as per the tag). |
@victorhuangwq Yes, exactly, I want to create my own UI for showing a list of our sensors to the user. |
Description
I know it's an experimental feature which needs to be enabled with
, but I'd still give out the permission from the code instead of having the user allow it in the dialog.
Version
SDK: 1.0.1901.177
Runtime: 115.0.1901.183
Framework: WPF, but others probably too
OS: Win10
Regression
Not a regression since it's an experimental feature.
Repro Steps
After enabling the experimental web platform features, execute a javascript call
Screenshots
The dialog shown that I'm trying to avoid is this:
Additional context
I tried settings several Permissions to
Allow
in the profile, and also set up aPermissionRequested
handler, but no luck so far.AB#45930376
The text was updated successfully, but these errors were encountered: