Fix subscribeNotifications on Android

This commit is contained in:
Rohit Sangwan
2025-12-12 16:18:32 +05:30
parent fa319416ef
commit d85cbbe725
@@ -381,7 +381,7 @@ class UniversalBlePlugin : UniversalBlePlatformChannel, BluetoothGattCallback(),
@Suppress("DEPRECATION")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
val status = gatt.writeDescriptor(descriptor, value)
if (gatt.writeDescriptor(descriptor, value) != BluetoothStatusCodes.SUCCESS) {
if (status != BluetoothStatusCodes.SUCCESS) {
callback(
Result.failure(
createFlutterError(