Baseflow / flutter-permission-plugins

This repo contains a collection of permission related Flutter plugins which can be used to request permissions to access device resources in a cross-platform way.
https://baseflow.com
MIT License
52 stars 34 forks source link

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

Open MilesAdamson opened 4 years ago

MilesAdamson commented 4 years ago

🐛 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

This returns true:

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

    return permission == PermissionStatus.granted;
  }

image

Platform:

albertusdev commented 4 years ago

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

albertusdev commented 4 years ago

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.