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

On iOS 13, location always is incorrectly returned as granted when you only have when in use

Open MilesAdamson opened this issue 5 years ago • 2 comments
trafficstars

🐛 Bug Report

NOTE: Yes I saw the closed issue where it was stated this was fixed and yes I'm using the hotfix location_permissions: 3.0.0+1

Expected behavior

Upon asking for location permissions and the user taps "when in use", location always is not yet granted.

Reproduction steps

  • Use iOS 13 device
  • Prompt for location permissions and select "when in use"
  • Check if permission level for location always

This returns true:

  static Future<bool> hasLocationAlwaysPermission() async {
    PermissionStatus permission = await LocationPermissions()
        .checkPermissionStatus(level: LocationPermissionLevel.locationAlways);

    return permission == PermissionStatus.granted;
  }

image

Platform:

  • [x] :iphone: iOS 13 (not 12 and lower, seems to work)
  • [ ] :robot: Android (all android devices tested work as well)

MilesAdamson avatar Jun 26 '20 22:06 MilesAdamson

:+1: to this, also encountering this bug on iOS 13

albertusdev avatar Jul 16 '20 11:07 albertusdev

Hello, just want to share that my current workaround is using different package made by Baselow called permission_handler which currently seem to return the correct permission status for location always.

albertusdev avatar Jul 20 '20 06:07 albertusdev