- From: Sota Koyama via GitHub <noreply@w3.org>
- Date: Fri, 31 Oct 2025 02:11:24 +0000
- To: public-web-bluetooth-log@w3.org
sotakoyama has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth:
== Web Bluetooth API: requestLEScan fails to detect devices when executed from application ==
### Issue Description
The Web Bluetooth API's requestLEScan method fails to detect BLE devices when executed from the application, but works correctly when the same code is executed from the DevTools console.
### Environment
- OS: Windows 11
- Browser: Google Chrome 141.0.7390.123
- Application URL: http://localhost:5173/
### Steps to Reproduce
1.Execution from Application (Device Detection Fails)
```javascript
navigator.bluetooth.requestLEScan({
acceptAllAdvertisements: true,
});
```
Result: Bluetooth device scan dialog appears, but no devices are detected
2.Execution from DevTools Console (Works Correctly)
- With the same page (http://localhost:5173/) open
- Execute the same code in DevTools console
- Result: Devices are detected and listed correctly
### Expected Behavior
When executing `requestLEScan` directly from the application, BLE devices should be detected the same way as when executed from the DevTools console.
### Actual Behavior
- Execution from application: No devices detected
- Execution from DevTools console: Devices detected correctly
### Screenshots
Execution from application
<img width="855" height="582" alt="Image" src="https://github.com/user-attachments/assets/7bf04d44-1725-4f13-893d-0c5c4757d4a2" />
Execution from DevTools
<img width="1739" height="557" alt="Image" src="https://github.com/user-attachments/assets/8c64df51-c11f-4fac-92ec-a6dbd205c7f0" />
- Example of detected device: UUID 0da68043-c98e-4d74-bcab-5380fa37a39c
### Questions
1. Is this a known bug?
2. Have similar cases been reported?
3. Are there any workarounds available?
### Additional Information
- Bluetooth permissions are properly granted
Any information or advice regarding this issue would be greatly appreciated.
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/666 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 31 October 2025 02:11:25 UTC