MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Permission for bluetooth scan
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
- 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:
Additional context
I tried settings several Permissions to Allow in the profile, and also set up a PermissionRequested handler, but no luck so far.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.