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.

Method requestPermissions returns inconsistent results with "Allow Once" on iOS#47

Description

@milhomem

馃悰 Bug Report

The method requestPermissions() when called with the default permission level LocationPermissionLevel.location returns PermissionStatus.denied if the user selects "Allow Once", but if you call the same requestPermissions() again it will return PermissionStatus.granted.

This does not happen if you call requestPermissions() with the permission level LocationPermissionLevel.locationWhenInUse.

Expected behavior

The method should return PermissionStatus.granted on the first call and consecutive calls.

Reproduction steps

  • Set permission as denied on iOS
  • Call permissionRequestResult = await LocationPermissions().requestPermissions()
  • Select "Allow Once" on iOS modal
  • Check permissionRequestResult will equal to PermissionStatus.denied
  • Again, call permissionRequestResult = await LocationPermissions().requestPermissions()
  • Check permissionRequestResult will equal to PermissionStatus.granted

Configuration

Version: 3.0.0+1

Platform:

  • 馃摫 iOS
  • 馃 Android

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