Essentials - Permission.RequestAsync skipped on Windows #5450
Labels
platform/windows 🪟
s/needs-verification
Indicates that this issue needs initial verification before further triage will happen
t/bug
Something isn't working
Description
Calling
Permissions.RequestAsync<T>();
on Windows is skipped and a result of 'Denied' is returned without the user being prompted.The user should be prompted to grant or deny the permission.
Issue does not occur on Andoird, iOS or macOS in my testing.
Steps to Reproduce
Permissions.RequestAsync<T>()
Adding breakpoints shows that the call is skipped and the result is returned as denied.
Small repo demonstrating here: https://github.com/matt-goldman/LocationPermissionsTest
Version with bug
Preview 14 (current)
Last version that worked well
Preview 11
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.19041
Did you find any workaround?
No, I tried wrapping it in
MainThread.InvokeOnMainThreadAsync
to no avail. I've also tried wrapping it in a try/catch to see if there are any errors I've been missing, also to no avail.Relevant log output
No response
The text was updated successfully, but these errors were encountered: