BluetoothStateManager.enabled() on android 12 are unable to turn on the bluetooth peripheral
BluetoothStateManager.enabled() is working fine on android 11 but when try with android 12 the BluetoothStateManager are unable to turn on the bluetooth peripheral
@mhendyl you need request BLUETOOTH_SCAN permission first
enable / disable is only working Android < 12, the issue is not about permission
Hi @mhendyl @x7Michi10x , were you able to fix this issue in Android 12? I'm running into it too, I tried adding BLUETOOTH_SCAN as @khoale-groove mentioned but it does not work, thanks in advance.
Hi @mhendyl @x7Michi10x , were you able to fix this issue in Android 12? I'm running into it too, I tried adding
BLUETOOTH_SCANas @khoale-groove mentioned but it does not work, thanks in advance.
Yes, I did by adding maxSdkVersion and targetApi.