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 33 forks source link

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

Open milhomem opened 4 years ago

milhomem commented 4 years ago

πŸ› 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

Configuration

Version: 3.0.0+1

Platform: