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

[Bug] Approximate location on Android 12 doesn't work correct. #1972

Closed
@orikworld

Description

Description

Can not get the approximate location on android 12 because line (Permissions.EnsureGrantedAsync<Permissions.LocationWhenInUse>()) expected only permissions granted:

await Permissions.EnsureGrantedAsync<Permissions.LocationWhenInUse>();

Steps to Reproduce

  1. Select the approximate location in popup
  2. Try to get permissions for locationInUse => Restricted
  3. Try to get the approximate location => throw a exception

Expected Behavior

 Geolocation gets the approximate location on android 12

Actual Behavior

Geolocation throws a exception

Basic Information

  • Version with issue:
  • Platform Target Frameworks:
    • Android: 12 (API 31)

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