I have an app that uses RxAndroidBle and communicates with a RN4871 module using GATT.
I also have a Vivoactive 4 smartwatch from Garmin for personal use.
When my phone is connected to the watch, the app that I am working on and uses RxAndoidBle has a very hard time to connect, and after several connections I need to restart the Bluethoot of the phone to be able to connect again. Restarting the RN4871 module has no effect on the problem, thus I know the problem is in the Android.
When connecting I get the following error:
onClientConnectionState() - status=8 clientIf=8 device=XX:XX:XX:XX:CA:00 2023-12-21 04:30:58.498 20749-21167 BluetoothC...nViewModel com.kostov.canthrust E connectToDevice: error while connecting to device com.polidea.rxandroidble3.exceptions.BleDisconnectedException: Disconnected from MAC='XX:XX:XX:XX:XX:XX' with status 8 (GATT_INSUF_AUTHORIZATION or GATT_CONN_TIMEOUT)
Any ideas on the root cause will be very helpful, as asking anyone who buys the product to not use a Garmin watch is not a great strategy.
I tried to reset the BluetoothGatt before connecting, also I tried to disconnect the BluetoothGatt after disconnecting. Same results.