Closed olo95 closed 6 months ago
I assume that the simplest example could be just:
await device.connect(timeout: timeout); await device.createBond();
But the behaviour for me is just the same
thanks for the issue.
there is nothing more FBP can do, that I know of. This is an android OS issue, and you are doing it correctly.
I think maybe you can try to change device firmware, but I am not sure.
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.32.7
Flutter Version
3.19.1
What OS?
Android
OS Version
11
Bluetooth Module
Nordic
What is your problem?
I set up an approach for resolving double pairing request popup on Android which is apparently common issue. I'm trying to use the suggested fix from documentation by invoking createBond right after connect is finished but it works very random. Sometimes alert is displayed once sometimes twice.
I'm wondering if example below properly represents the idea behind suggestion from doc. FYI I listen to bond state for debugging purposes for now.
Do you maybe have some verified examples for this issue?
`Future connect(BluetoothDevice device, Duration timeout) async {
final Completer completer = Completer();
}`
Logs