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

Permission error on Android v12+ #98

Open
dieg092 opened this issue Mar 2, 2023 · 2 comments
Open

Permission error on Android v12+ #98

dieg092 opened this issue Mar 2, 2023 · 2 comments

Comments

@dieg092
Copy link

dieg092 commented Mar 2, 2023

Permission error appears in android v12+ devices.
I think that add this permission inside AndroidManifest.xml could fix it:
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT_PRIVILEGED" />

WhatsApp Image 2023-03-02 at 20 20 22
WhatsApp Image 2023-03-02 at 20 20 21

@Salem-Abderaouf
Copy link

Still an issue!

@huytdps13400
Copy link

use library react-native-permissions https://github.com/zoontek/react-native-permissions
export async function requestBluetoothPermission() {
const status = await request(
Platform.select({
android: PERMISSIONS.ANDROID.BLUETOOTH_CONNECT,
}),
);
return status;
On Android 12+ You can check request Permission Bluetooth Connect after when call method getDeviceList
Screen Request Permission
image
Screen Find Device Bluetooth
image

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