chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 479 forks source link

[Help]: FlutterBluePlus.systemDevices isn't showing already paired devices to the BLE system #884

Closed samnbd closed 6 months ago

samnbd commented 6 months ago

Requirements

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.32.7

Flutter Version

3.7.11

What OS?

Android

OS Version

13

Bluetooth Module

Nordic

What is your problem?

When scanning for devices on Android and using both FlutterBluePlus.onScanResults.listen(...) and FlutterBluePlus.systemDevices, the already paired device to Android's BLE system will not show up. I even tried using FlutterBluePlus.connectedDevices but it's the same thing. Please note that I tried to scan the same paired device with flutter_reactive_ble on Android and it showed the device as expected.

Logs

I/flutter (25804): [FBP] <getSystemDevices> args: null
D/[FBP-Android](25804): [FBP] onMethodCall: getSystemDevices
I/flutter (25804): [FBP] <getSystemDevices> result: {devices: []}
433
E/gralloc4(25804): Empty SMPTE 2094-40 data
chipweinberger commented 6 months ago

paired (i.e. bonded) devices show up at FlutterBluePlus.bondedDevices

only connected devices show up at FlutterBluePlus.systemDevices

and you should look at how they implement their code in android native code and compare

samnbd commented 6 months ago

Thanks for the reply