Open Utkuusta opened 1 year ago
Thanks for report, I will check it and get back to you.
I just found out that it is not an android 13 issue, I have two devices I am working with that have android 13, on a Galaxy Tab A7 Lite the duration is 5 seconds, on a Nothing phone (1) the duration is 30 seconds, both running Android 13
Describe the bug I have set the connectionTimout under connectToDevice function to 30 seconds but it still acts as 5 seconds on an android 13 device, lower versions of android seems to be working.
Future connect(String deviceId) async {
await DefaultCacheManager().emptyCache();
_logMessage('Start connecting to $deviceId');
_connection = _ble
.connectToDevice(id: deviceId, connectionTimeout: Duration(seconds: 30))
.listen(
(update) {
_logMessage(
'ConnectionState for device $deviceId : ${update.connectionState}');
_deviceConnectionController.add(update);
},
onError: (Object e) =>
_logMessage('Connecting to device $deviceId resulted in error $e'),
);
}
All the permissions I have added to my project: