Skip to content

Not working on Android 10+ (permission issue?) #162

@phatpaul

Description

@phatpaul

I know this project is not active, so this probably won't be fixed. But it's worth pointing out that this plugin is not working for me anymore when compiled for Android SDK 29. There are no runtime errors in console, and no BLE devices are discovered.

A quick search brings up new permission requirements for Android 10+:

android.permission.ACCESS_FINE_LOCATION,
android.permission.ACCESS_COARSE_LOCATION,
android.permission.ACCESS_BACKGROUND_LOCATION.

https://stackoverflow.com/questions/58428763/android-10-not-working-with-ble-bluetooth-scanning

I tried adding those to the AndroidManifest.xml with no luck.

It's interesting that older versions of my App which were compiled previously with older SDK continues to work and discover BLE devices on Android 10+. And seems google won't let me submit a newly build app to the app store unless SDK >= 29.

WTF does google require FINE and BACKGROUND location just to use BLE? I'm not trying to spy on users of my app and I don't use location at all. IMO by requiring these in every BLE app, they are desensitizing people to the requirement of location permission. So when a spyware app asks for LOCATION permission it just seems normal. Anyway... Rant over.

Has anyone got this working on Android 10+?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions