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

Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@d396bf07: getName #205

Open
GittyAjay opened this issue Nov 29, 2022 · 2 comments

Comments

@GittyAjay
Copy link

I am frequently getting this error,i already added these permission in manifest file.

Manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.app.example" android:installLocation="auto"> <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN "/> <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED "/> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="com.android.vending.BILLING" /> <uses-permission android:name="android.permission.WRITE_CONTACTS" /> <uses-permission android:name="android.permission.READ_CONTACTS" />

do you have any solution?

@QSJSI
Copy link

QSJSI commented Nov 30, 2022

You haven't added a permission <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

<uses-permission android:name="android.permission.BLUETOOTH"/> only works with android sdk less than 31

@satyamrathor16
Copy link

Hello @GittyAjay please try this.

If you add both permission and you platform is grater than 30 it still show you error of BLUETOOTH_CONNECT.
So you have to specify the BLUETOOTH permission should only work if sdk version in less than 31.

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