From 4e44db3e7ab46d191c031ebf5907a4509cff48fd Mon Sep 17 00:00:00 2001 From: Matias de Andrea Date: Fri, 11 Sep 2026 04:01:23 +0000 Subject: [PATCH 1/2] fix: remove NSLocationWhenInUseUsageDescription from PERMISSION_LOCATION plistKeys --- .../ios/permission_handler_apple/Package.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/permission_handler_apple/ios/permission_handler_apple/Package.swift b/permission_handler_apple/ios/permission_handler_apple/Package.swift index 6ca1b7527..7dc265db2 100644 --- a/permission_handler_apple/ios/permission_handler_apple/Package.swift +++ b/permission_handler_apple/ios/permission_handler_apple/Package.swift @@ -671,8 +671,7 @@ let permissionDefines: [CSetting] = [ // dart: PermissionGroup.location / locationAlways / locationWhenInUse .define("PERMISSION_LOCATION", to: enabled("PERMISSION_LOCATION", - plistKeys: "NSLocationWhenInUseUsageDescription", - "NSLocationAlwaysAndWhenInUseUsageDescription")), + plistKeys: "NSLocationAlwaysAndWhenInUseUsageDescription")), // dart: PermissionGroup.locationWhenInUse (only when locationAlways is NOT needed) .define("PERMISSION_LOCATION_WHENINUSE", to: enabled("PERMISSION_LOCATION_WHENINUSE", From a2f820165ae0291f905e3b4bde5b162307559cd3 Mon Sep 17 00:00:00 2001 From: Matias de Andrea Date: Fri, 11 Sep 2026 04:13:49 +0000 Subject: [PATCH 2/2] chore(apple): Update version --- permission_handler_apple/CHANGELOG.md | 4 ++++ permission_handler_apple/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/permission_handler_apple/CHANGELOG.md b/permission_handler_apple/CHANGELOG.md index aab215b32..03d927113 100644 --- a/permission_handler_apple/CHANGELOG.md +++ b/permission_handler_apple/CHANGELOG.md @@ -1,3 +1,7 @@ +## 9.6.2 + +- Fix SwiftPM compiles requestAlwaysAuthorization for locationWhenInUse when only exist foreground location propouse (NSLocationWhenInUseUsageDescription plistKey) + ## 9.6.1 - Fixes small mistakes in the README.md documentation. diff --git a/permission_handler_apple/pubspec.yaml b/permission_handler_apple/pubspec.yaml index 6bacce0b4..ece856091 100644 --- a/permission_handler_apple/pubspec.yaml +++ b/permission_handler_apple/pubspec.yaml @@ -2,7 +2,7 @@ name: permission_handler_apple description: Permission plugin for Flutter. This plugin provides the iOS API to request and check permissions. repository: https://github.com/baseflow/flutter-permission-handler issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues -version: 9.6.1 +version: 9.6.2 environment: sdk: ^3.6.0