Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants