chipweinberger / flutter_blue_plus

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

[Help]: Ble auto connection issue when bluetooth turn on/off in Android #886

Closed NaynaAsodariya closed 3 weeks ago

NaynaAsodariya commented 6 months ago

Requirements

Have you checked this problem on the example app?

No

FlutterBluePlus Version

1.32.7

Flutter Version

3.19.5

What OS?

Mac OS

OS Version

Android 11

Bluetooth Module

Not sure about it

What is your problem?

Ble status connected Turn off bluetooth Auto connection didn't work for Android only, it's working for iOS device

Logs

In logs I can see that connect method but not connecting back

D/[FBP-Android](31094): [FBP] OnAdapterStateChanged: turningOn
D/[FBP-Android](31094): [FBP] OnAdapterStateChanged: on
D/[FBP-Android](31094): [FBP] onMethodCall: connect
D/BluetoothGatt(31094): connect() - device: _device_mac_address, auto: true, eattSupport: false
D/BluetoothGatt(31094): registerApp()
D/BluetoothGatt(31094): registerApp() - UUID=_uuid
chipweinberger commented 6 months ago

not sure the problem. what happens after 30s? does the connectio time out?

could be a device problem

chipweinberger commented 6 months ago

closing. no response.

ImanGhasemiArani commented 1 month ago

same issue. When the device is connected, turn off the bluetooth, after the device is 10 meters away, then turn on the bluetooth, then the device will not connect anymore, just restart the app to connect.

chipweinberger commented 1 month ago

open a PR thanks

chipweinberger commented 3 weeks ago

closing. no response.