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] Android 12: "Approximate" Location Permissions Returns Denied #1912

Closed
@SharpMobileCode

Description

@SharpMobileCode

Description

On an Android 12 device or emulator, the Permissions.RequestAsync<Permissions.LocationWhenInUse>() call returns PermissionStatus.Denied when user selects "Approximate" location. It should return PermissionStatus.Granted

Steps to Reproduce

  1. Clone or download this repo: https://github.com/SharpMobileCode/Android12XamEssentialsBug
  2. Run the Android application on an Android 12 device or emulator.
  3. Tap the "Request Location Permission" button.
  4. Select "Approximate".
  5. Select "While using the app" or "Only this time".

Expected Behavior

Returns PermissionStatus.Granted

Actual Behavior

Returns PermissionStatus.Denied

Basic Information

  • Version with issue: 1.7.0
  • Last known good version:
  • IDE: Visual Studio 2019 for Mac
  • Platform Target Frameworks: API Level 30
    • Android: API Level 30
  • Android Support Library Version:
  • Nuget Packages: Xamarin.Essentials, Xamarin.Forms
  • Affected Devices: All devices running Android 12

Reproduction Link

https://github.com/SharpMobileCode/Android12XamEssentialsBug

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions