serdar aylanc
serdar aylanc

Reputation: 1347

Flutter - flutter_blue library connection issue

I am running flutter_blue example app on an android device, but scans and find the ble devices nearby but unable to connect them. iOS build of example app can successfully connect the ble devices. Is there a missing configuration for android devices.

Note: I checked permissions, they are ok.

Upvotes: 3

Views: 2817

Answers (1)

BorisBaroslav
BorisBaroslav

Reputation: 302

Permissions appear not to be the issue. It finds the ble devices.

I experienced similar issues with flutter_blue on android. It even appeared to be BLE device dependent. It connected fine to some devices, and didn't for others.

In my case, it was just stuck at the connection attempt. Waiting several minutes resolved mostly in a connection, but that's not usable.

I was able to resolve my issue, by turning off autoconnect, so

device.connect(autoConnect: false);

Then it worked for me. Maybe this helps you or other users experiencing the same issues.

Upvotes: 4

Related Questions