MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Permission for bluetooth scan

Open
#3,670 6 comments 0 reactions 3 assignees View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.