Skip to content

Bluetooth  #751

@Covarians

Description

@Covarians

Hello,
I am using this superb plugin on an Android 12 device (SDK31+)
After bluetoothle.initialize I request the SCAN permission and then the CONNECT permissions and get responses that these two permissions are granted succesfully.
I can see on the android apps permission page that both Location and Nearby devices permission are allowed for my application.

But when I start the scan process I get the following error message

[BLE] ERROR in startScanning: "Need android.permission.BLUETOOTH_SCAN permission for AttributionSource { uid = 10388, packageName = com.covarians.aexpad, attributionTag = null, token = android.os.BinderProxy@729d2, next = null }: GattService registerScanner"

My AndoidManifest.xml file includes:

<uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.BLUETOOTH_SCAN" /> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

I tried the different variations recommanded but without any success

If I disallow and reallow manually the Nearby Device permission it works.

Any idea how to solve that strange behaviour.

Thanks a lot.

FG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions