Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.
This repository was 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

Description

@MilesAdamson

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions