You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
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.
🐛 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
permissionRequestResult = await LocationPermissions().requestPermissions()
denied
permissionRequestResult = await LocationPermissions().requestPermissions()
granted
Configuration
Version: 3.0.0+1
Platform:
The text was updated successfully, but these errors were encountered: