Skip to content

Android 13 ACCESS_COARSE_LOCATION blog/code contradiction #23

@blundell

Description

@blundell

Your docs state:

ACCESS_COARSE_LOCATION: Apps targeting Android 12 (API 31) and above must also request this permission in addition to ACCESS_FINE_LOCATION.

image

However your code only requests the SCAN permission: https://github.com/PunchThrough/ble-starter-android/blob/api-34/app/src/main/java/com/punchthrough/blestarterappandroid/PermissionsHelper.kt#L44

I've been able to reproduce in my app that I cannot scan and find any BT devices unless the COARSE location permission is granted. I'm running on a Pixel 7 / Android 13.

Is this something you are aware of?

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