Skip to content

Permission for bluetooth scan #3670

Open
@ray007

Description

Description
I know it's an experimental feature which needs to be enabled with

new CoreWebView2EnvironmentOptions("--enable-experimental-web-platform-features");

, 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

btScan = await navigator.bluetooth.requestLEScan(options);

Screenshots
The dialog shown that I'm trying to avoid is this:
image

Additional context
I tried settings several Permissions to Allow in the profile, and also set up a PermissionRequested handler, but no luck so far.

AB#45930376

Metadata

Labels

feature requestfeature requestpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.trackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions