Skip to content

Android 13 ACCESS_COARSE_LOCATION blog/code contradiction #23

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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