Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to scan Bluetooth devices. #463

Open
DONGNEZHA opened this issue Aug 8, 2023 · 0 comments
Open

Unable to scan Bluetooth devices. #463

DONGNEZHA opened this issue Aug 8, 2023 · 0 comments

Comments

@DONGNEZHA
Copy link

A strange phenomenon, I introduced two Bluetooth plugins, cordova-plugin-ble-central and cordova-plugin-bluetooth-serial. The former is used to handle BLE type Bluetooth devices, while the latter handles classic Bluetooth. However, when I use the methods of the second plugin alone on my device (HUAWEI M6), for example: bluetoothSerial.setDeviceDiscoveredListener(deviceDiscoveredListener); bluetoothSerial.discoverUnpaired(onDiscoverUnpaired); it does not scan any Bluetooth devices. Only when I first call the scanning method of the first plugin (ble.startScan) and delay for a while, the discover method of the second plugin can return Bluetooth information to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant