Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

[Bug] Permission.LocationAlways reports denied on sdk version < 29 #1142

Closed
@nicolashotterbeekx

Description

@nicolashotterbeekx

Description

When compiling against android SDK 29 the method CheckStatusAsync<Permissions.Location>Always() return denied on devices with android 9 or lower when both permissions ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION are allowed.

The permission LocationAlways in android uses a SDK version check at compile time to request ACCESS_BACKGROUND_LOCATION but should use a runtime SDK version check. As ACCESS_BACKGROUND_LOCATION is unkown on android 9 or lower this will always result in denied.

Steps to Reproduce

  1. Create android app compiled against android SDK 29
  2. Request permissions.LocationAlways
  3. Allow location
  4. Check with CheckStatusAsync<Permissions.LocationAlways>()
  5. Permission should be granted but is denied

Expected Behavior

Permission should be Granted

Actual Behavior

Permission is denied

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS:
    • Android: 29
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions