Open ckrutsinger opened 6 months ago
@ckrutsinger You could try if you also get the issue with the latest MAUI version of 8.0.21: https://github.com/dotnet/maui/discussions/22059
Today I tried on 8.0.21 and 8.0.14. Both still exhibit returning Granted even if Don't Allow is chosen at install. I wonder if the issue has anything to do with the presence of both permission tags in Info.plist:
<key>NSBluetoothPeripheralUsageDescription</key>
...
<key>NSBluetoothAlwaysUsageDescription</key>
On first launch after install, the app prompts with the string for Always usage. There is no prompt for the now deprecated Peripheral usage permission. So it is the Always usage I am not allowing. Is the permission check returning the Peripheral permission, which apparently doesn't require explicit authorization? await Permissions.CheckStatusAsync<Permissions.Bluetooth>();
doesn't have an option to inquire about the Always permission.
I have added a demo project which replicates the bug on latest MAUI version. See MainPage.xaml.cs
Verified this issue with Visual Studio 17.10 Preview 5 (8.0.21&8.0.7). Can repro on iOS platform with sample project.
I have retested with MAUI 8.0.40 and issue is still present.
Facing same issue.
Facing same issue too. MAUI 8.0.80 VS 17.11.2
Possible duplicate of https://github.com/dotnet/maui/issues/23962
Description
status = await Permissions.CheckStatusAsync<Permissions.Bluetooth>();
is returning PermissionStatus.Granted even though I choose Not Allowed.Steps to Reproduce
iOS ONLY
await Permissions.CheckStatusAsync<Permissions.Bluetooth>()
and response will bePermissionStatus.Granted
instead ofPermissionStatus.Denied
Demo app will put the permission status into the click me button upon being clickedLink to public reproduction project repository
demo app
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17.4
Did you find any workaround?
No workaround found.
Relevant log output