Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

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

Open
1 of 2 tasks
MilesAdamson opened this issue Jun 26, 2020 · 2 comments

Comments

@MilesAdamson
Copy link

馃悰 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:

  • 馃摫 iOS 13 (not 12 and lower, seems to work)
  • 馃 Android (all android devices tested work as well)
@albertusdev
Copy link

馃憤 to this, also encountering this bug on iOS 13

@albertusdev
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants