KEMBAR78
Permissions.CheckStatusAsync<Permissions.Bluetooth> on iOS returns Granted when don't allow is chosen · Issue #22070 · dotnet/maui · GitHub
Skip to content

Permissions.CheckStatusAsync<Permissions.Bluetooth> on iOS returns Granted when don't allow is chosen #22070

@ckrutsinger

Description

@ckrutsinger

Description

status = await Permissions.CheckStatusAsync<Permissions.Bluetooth>();
is returning PermissionStatus.Granted even though I choose Not Allowed.

Steps to Reproduce

iOS ONLY

  1. Include this in Info.plist:
	<key>NSBluetoothAlwaysUsageDescription</key>
	<string>app collects location data to enable vehicle services including current location and event location</string>
  1. Upon app install, you should be prompted for Bluetooth permission, choose "Don't Allow". If not prompted, use Settings app to disallow Bluetooth for app
  2. After app launches, call await Permissions.CheckStatusAsync<Permissions.Bluetooth>() and response will be PermissionStatus.Granted instead of PermissionStatus.Denied Demo app will put the permission status into the click me button upon being clicked

Link 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

no relevant logs

Metadata

Metadata

Assignees

Labels

area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infopartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions