Permission Denied returned when approximate location is selected #10053
Labels
area-essentials
Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
fixed-in-7.0.0-rc.2.6866
Look for this fix in 7.0.0-rc.2.6866!
platform/android 🤖
t/bug
Something isn't working
Milestone
Description
I am developing a MAUI app for Android.
From API 31, when you request location permission, you can choose either approximate location or precise location. When approximate location is selected,
await Permissions.RequestAsync<Permissions.LocationWhenInUse>();
returnsPermissionStatus.Denied
. I think it should return something else (maybeRestricted
?), notDenied
.I found an issue describing the same issue in Xamarin repo: xamarin/Essentials#1912 and it seems to be fixed for Xamarin. I assume that it's not fixed in MAUI, but could anyone please confirm this is still an issue in MAUI?
I don't know if this is an Android specific issue.
Environment/Versions:
Visual Studio 17.4.0 Preview 1.0
Android 12 (API 31 and higher)
Steps to Reproduce
await Permissions.RequestAsync<Permissions.LocationWhenInUse>();
, which shows a popup asking whether you allow approximate location or precise location or not allow location at all.PermissionStatus.Denied
Link to public reproduction project repository
https://github.com/kojini/PermissionTest
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12 API 31 and higher
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: