Skip to content
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

Support for Android 12? #14

Closed
Zahermah opened this issue Mar 15, 2022 · 5 comments
Closed

Support for Android 12? #14

Zahermah opened this issue Mar 15, 2022 · 5 comments
Assignees

Comments

@Zahermah
Copy link

Hi I just upgraded my phone to Android 12 and my application stopped working due to the runtime permission and enable ble intent etc. I just wanted to know if you guys are working on migrating the permissions to the new standard with Android 12?.
If not is there any possibility that i can get some guidance into this matter?

Kind regards
Zaher

@cheeyi cheeyi self-assigned this Sep 29, 2022
@cheeyi
Copy link
Member

cheeyi commented Sep 29, 2022

@Zahermah Apologies for the incredibly late response. We're actively working on adding support for Android 12+, but in the meantime if you need to support a targetSdkVersion of 31 and newer, you'll need to ask for the new BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions for devices running Android 12 and above.

@kitoheedong
Copy link

kitoheedong commented Oct 9, 2022

Thanks for the nice explanation and code!
Really appreciate it. Without it, it would be so frustrated for ble working.

For android 12, is there any other jobs to be done besides of permission of BLUETOOTH_SCAN and BLUETOOTH_CONNECT?

@cheeyi
Copy link
Member

cheeyi commented Oct 10, 2022

Thanks for the nice explanation and code! Really appreciate it. Without it, it would be so frustrated for ble working.

For android 12, is there any other jobs to be done besides of permission of BLUETOOTH_SCAN and BLUETOOTH_CONNECT?

@heedongrichrich Nope, you'd just need to make sure you have those two permissions during runtime before calling the usual BLE APIs. Everything else should work as pre-12.

@cheeyi cheeyi pinned this issue Oct 10, 2022
@kitoheedong
Copy link

kitoheedong commented Oct 10, 2022

Thanks for the nice explanation and code! Really appreciate it. Without it, it would be so frustrated for ble working.
For android 12, is there any other jobs to be done besides of permission of BLUETOOTH_SCAN and BLUETOOTH_CONNECT?

@heedongrichrich Nope, you'd just need to make sure you have those two permissions during runtime before calling the usual BLE APIs. Everything else should work as pre-12.

Really appreciate your kind comments! It's really helpful!

@cheeyi
Copy link
Member

cheeyi commented Apr 9, 2024

Sorry for the delay. This has now been addressed and available on the latest release: https://github.com/PunchThrough/ble-starter-android/tree/api-34.

@cheeyi cheeyi closed this as completed Apr 9, 2024
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

3 participants