Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

BluetoothStateManager.enabled() on android 12 are unable to turn on the bluetooth peripheral #73

Open
mhendyl opened this issue Aug 25, 2022 · 4 comments

Comments

@mhendyl
Copy link

mhendyl commented Aug 25, 2022

BluetoothStateManager.enabled() is working fine on android 11 but when try with android 12 the BluetoothStateManager are unable to turn on the bluetooth peripheral

@khoale-groove
Copy link

@mhendyl you need request BLUETOOTH_SCAN permission first

@x7Michi10x
Copy link

enable / disable is only working Android < 12, the issue is not about permission

@oalcantarhypha
Copy link

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.

@x7Michi10x
Copy link

x7Michi10x commented Mar 21, 2023

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.

Yes, I did by adding maxSdkVersion and targetApi.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants