Skip to content

Commit 6d18aa9

Browse files
committed
Remove deprecated NSLocationAlwaysUsageDescription
1 parent 4cddc61 commit 6d18aa9

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ setup_permissions([
117117
<string>YOUR TEXT</string>
118118
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
119119
<string>YOUR TEXT</string>
120-
<key>NSLocationAlwaysUsageDescription</key>
121-
<string>YOUR TEXT</string>
122120
<key>NSLocationTemporaryUsageDescriptionDictionary</key>
123121
<dict>
124122
<key>YOUR-PURPOSE-KEY</key>

example/ios/RNPermissionsExample/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
<string>Let me use FaceID</string>
5252
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
5353
<string>Let me use your location, even in background</string>
54-
<key>NSLocationAlwaysUsageDescription</key>
55-
<string>Let me use your location, even in background</string>
5654
<key>NSLocationTemporaryUsageDescriptionDictionary</key>
5755
<dict>
5856
<key>full-accuracy</key>

ios/LocationAlways/RNPermissionHandlerLocationAlways.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ @interface RNPermissionHandlerLocationAlways() <CLLocationManagerDelegate>
1414
@implementation RNPermissionHandlerLocationAlways
1515

1616
+ (NSArray<NSString *> * _Nonnull)usageDescriptionKeys {
17-
return @[
18-
@"NSLocationAlwaysAndWhenInUseUsageDescription",
19-
@"NSLocationAlwaysUsageDescription",
20-
];
17+
return @[@"NSLocationAlwaysAndWhenInUseUsageDescription"];
2118
}
2219

2320
+ (NSString * _Nonnull)handlerUniqueId {

0 commit comments

Comments
 (0)