Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Denied returned when approximate location is selected #10053

Closed
kojini opened this issue Sep 12, 2022 · 2 comments · Fixed by #10092
Closed

Permission Denied returned when approximate location is selected #10053

kojini opened this issue Sep 12, 2022 · 2 comments · Fixed by #10092
Assignees
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

Comments

@kojini
Copy link

kojini commented Sep 12, 2022

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>(); returns PermissionStatus.Denied. I think it should return something else (maybe Restricted?), not Denied.

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

  • Call await Permissions.RequestAsync<Permissions.LocationWhenInUse>();, which shows a popup asking whether you allow approximate location or precise location or not allow location at all.
  • Select approximate location (doesn't matter whether you choose only this time or when app is in use)
  • See the return value is 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

@kojini kojini added the t/bug Something isn't working label Sep 12, 2022
@jsuarezruiz jsuarezruiz added area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info platform/android 🤖 labels Sep 12, 2022
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Sep 12, 2022
@ghost
Copy link

ghost commented Sep 12, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@ibpet11
Copy link

ibpet11 commented Sep 22, 2022

I feel this issue should be attended to timely. I have a new project and I keep getting "Location services are not enabled on device." even after the user select location permission for now when prompted. Please help out

@ghost ghost locked as resolved and limited conversation to collaborators Nov 5, 2022
@samhouts samhouts added the fixed-in-7.0.0-rc.2.6866 Look for this fix in 7.0.0-rc.2.6866! label Feb 17, 2023
@samhouts samhouts modified the milestones: Backlog, .NET 8 May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants