capacitor-community / capacitor-community/bluetooth-le

Scanning possible when bluetooth is off

Open
#628 6 comments 0 reactions 0 assignees View on GitHub
bug cannot reproduce
Dominant language
TypeScript
Stars
361
Forks
121
Avg merge
10d 45m
Merged PRs (30d)
2

Description

**Describe the bug**
When the Bluetooth is off, the plugin can still detect Bluetooth devices (this only happens on Android). Even it's possible to connect.

**To Reproduce**
Steps to reproduce the behavior:
1. Clone the project https://github.com/juniorsaraviao/BluetoothSample/tree/master
2. Run the project on Android.
3. Turn off the Bluetooth.
4. Tap Scan.

**Expected behavior**
The plugin shouldn't be able to detect devices when the Bluetooth is off.

**Screenshots**
| Issue |
| ------------- |
| |

**Plugin version:**
- @capacitor-community/bluetooth-le: v3.1.2

**Desktop (please complete the following information):**
- OS: Android

**Smartphone (please complete the following information):**
- Device: Samsung Galaxy A53
- OS: Android
- Version 14

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the linked BluetoothSample on Android 14 by disabling Bluetooth and tapping Scan. Trace the plugin's Android scanning entry point and verify that scanning and connections are unavailable while Bluetooth is off; repeat the reproduction steps to confirm the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.