Skip to content

Commit f592dc2

Browse files
committed
Remove the location background mode check
1 parent e3f80de commit f592dc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/LocationAlways/RNPermissionHandlerLocationAlways.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ + (NSString * _Nonnull)handlerUniqueId {
2727

2828
- (void)checkWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve
2929
rejecter:(void (__unused ^ _Nonnull)(NSError * _Nonnull))reject {
30-
if (![CLLocationManager locationServicesEnabled] || ![RNPermissions isBackgroundModeEnabled:@"location"]) {
30+
if (![CLLocationManager locationServicesEnabled]) {
3131
return resolve(RNPermissionStatusNotAvailable);
3232
}
3333

@@ -46,7 +46,7 @@ - (void)checkWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve
4646

4747
- (void)requestWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve
4848
rejecter:(void (^ _Nonnull)(NSError * _Nonnull))reject {
49-
if (![CLLocationManager locationServicesEnabled] || ![RNPermissions isBackgroundModeEnabled:@"location"]) {
49+
if (![CLLocationManager locationServicesEnabled]) {
5050
return resolve(RNPermissionStatusNotAvailable);
5151
}
5252
if ([CLLocationManager authorizationStatus] != kCLAuthorizationStatusNotDetermined) {

0 commit comments

Comments
 (0)