flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

Bluetooth android only permissions check should be always allowed on iOS

Open boskokg opened this issue 3 years ago • 1 comments

🏗 Enhancement Proposal

bluetooth: "When running < iOS 13 or Android this is always allowed."

This is not a case for bluetoothScan and bluetoothConnect. permissions are denied on iOS

Pitch

Now we need to check the platform before checking the bluetoothScan and bluetoothConnect. I made a mistake in code and checked this permision in iOS...

Platforms affected (mark all that apply)

  • [x] :iphone: iOS
  • [ ] :robot: Android

boskokg avatar Aug 18 '22 17:08 boskokg

Android is also affected. By asking for Permission.bluetooth on Android, it will always return PermissionStatus.denied.

The documentation should be improved either way: "When running < iOS 13 or Android this is always allowed" should likely be something like:

"When running < iOS 13 or Android, requesting or checking this status will always return [PermissionStatus.granted]" (or .denied, if that's the intended behavior)

tony-ditchlabs avatar Jan 12 '23 22:01 tony-ditchlabs