I have an error with bluetooth on android 12, Xiaomi Poco X3 NFC

It's particularly problematic because the old Bluetooth permissions aren't even runtime permissions, so there should never be a need to use the "AskForPermission" block to obtain them.

From what I've read, Xiaomi has something broken with bluetooth permissions. And it's strange that it worked here.



Add this block:



When calling bluetoothle1. startscan, the APP calls location information instead of Bluetooth.

This topic is about bluetooth classic, not bluetooth le.

I encountered the same problem as this

Use the latest version of the ble extension from this year. Yesterday I share a link in two topics about ble.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

Yes and in addition it would not work with the latest BLE extension, because you would have to remove that part there first (or change it to "31")


from this line in the Manifest:

<uses-permission android:maxSdkVersion="30" android:name="android.permission.BLUETOOTH"/>

This topic is about the built-in BluetoothClient component and the Xiaomi phone has something messed up with Bluetooth permissions. With changes to the manifest, it was just a test. In the end, the manifest was unchanged, it was enough to add a block with bluetooth permissions.
I didn't delve too much into it, I found this advice on SO.

I am aware of that. I just wanted to point out as a precaution that it is not possible with the latest BLE extension without adapting the Manifest.

1 Like