Commit 8c77c8f6 by Jan-Derk de Vries Committed by GitHub

Issue/fix 601 location always permission bug (#629)

* Fixed bug where locationAlways sometimes returned either PermissionStatus.Granted or Denied

* Fix bug where `locationAlways` returned sometimes `PermissionStatus.Denied` instead of `PermissionStatus.Granted`.

* Update permission_handler/CHANGELOG.md

Co-authored-by: Maurits van Beusekom <maurits@vnbskm.nl>

Co-authored-by: Maurits van Beusekom <maurits@vnbskm.nl>
parent 8350aafe
## 8.1.4
* Fix bug where requesting `locationAlways` permission sometimes returns `PermissionStatus.Denied` instead of `PermissionStatus.Granted`.
## 8.1.3
* Fix bug where `locationAlways` returns `PermanentlyDenied`;
......
......@@ -46,7 +46,7 @@
int rawValue = rawNumberValue.intValue;
PermissionGroup permission = (PermissionGroup) rawValue;
id <PermissionStrategy> permissionStrategy = [PermissionManager createPermissionStrategy:permission];
__block id <PermissionStrategy> permissionStrategy = [PermissionManager createPermissionStrategy:permission];
[_strategyInstances addObject:permissionStrategy];
......@@ -55,6 +55,7 @@
[requestQueue removeObject:@(permission)];
[self->_strategyInstances removeObject:permissionStrategy];
permissionStrategy = nil;
if (requestQueue.count == 0) {
completion(permissionStatusResult);
......
name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version: 8.1.3
version: 8.1.4
homepage: https://github.com/baseflowit/flutter-permission-handler
flutter:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment