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

[Bug] [Android] Permissions LocationAlways Fails on Android 11+ #1936

Closed
aritchie opened this issue Dec 7, 2021 · 2 comments
Closed

[Bug] [Android] Permissions LocationAlways Fails on Android 11+ #1936

aritchie opened this issue Dec 7, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@aritchie
Copy link
Contributor

aritchie commented Dec 7, 2021

Description

Permissions.RequestAsync will either not return or not open new dialog. Android 11+ requires that background location permissions are requested separately or they will silently fail to the console.

FYI - this is partially related to #1912 which I am sending a PR for. The fixes from this have already been applied in Shiny Locations

Steps to Reproduce

  1. Spin up an Android 11/12 emulator
  2. Run permission sample for Location Always
  3. Watch nothing happen

Expected Behavior

The permission is requested and returns Denied/Granted or Restricted depending on choices made

Actual Behavior

Silently fails or returns denied

Basic Information

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

Screenshots

Reproduction Link

@aritchie aritchie added the bug Something isn't working label Dec 7, 2021
@aritchie
Copy link
Contributor Author

@jfversluis If you can pass this within the next couple weeks, I'll have some time to port this over to MAUI during the holidays.

@jfversluis
Copy link
Member

I will see if I can have a look at what is moving here this week! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants