PhilipsHue / flutter_reactive_ble

Flutter library that handles BLE operations for multiple devices.
https://developers.meethue.com/
Other
661 stars 321 forks source link

Bluetooth not work in Android 13 #879

Closed Pedro-Serer closed 1 week ago

Pedro-Serer commented 1 month ago

I'm called Pedro and i'm using the package flutter_reactive_ble but i'm have some problems.

The package not work in versions above the Android 12.

Firstly i had problems of permissions with the package. Then i changed my manifest file implementing the line:

image

The permission problem has stopped but now i have other problem. My Bluetooth start, scan but not connect... What i can make for this to work?

My function:

image

The application was supposed to request these permissions as soon as the APP starts

keval-devani commented 1 month ago

@Pedro-Serer please add BLUETOOTH_CONNECT permission in android manifest for Android API 31+.

<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

See here

Pedro-Serer commented 1 month ago

@keval-devani these are my permissions that were already in the manifest file:

image

Taym95 commented 1 week ago

This is not library issue, works on Android 13 .