Browse Source

Remove the location background mode check

Mathieu Acthernoene 5 years ago
parent
commit
f592dc2579
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      ios/LocationAlways/RNPermissionHandlerLocationAlways.m

+ 2
- 2
ios/LocationAlways/RNPermissionHandlerLocationAlways.m View File

@@ -27,7 +27,7 @@
27 27
 
28 28
 - (void)checkWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve
29 29
                  rejecter:(void (__unused ^ _Nonnull)(NSError * _Nonnull))reject {
30
-  if (![CLLocationManager locationServicesEnabled] || ![RNPermissions isBackgroundModeEnabled:@"location"]) {
30
+  if (![CLLocationManager locationServicesEnabled]) {
31 31
     return resolve(RNPermissionStatusNotAvailable);
32 32
   }
33 33
 
@@ -46,7 +46,7 @@
46 46
 
47 47
 - (void)requestWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve
48 48
                    rejecter:(void (^ _Nonnull)(NSError * _Nonnull))reject {
49
-  if (![CLLocationManager locationServicesEnabled] || ![RNPermissions isBackgroundModeEnabled:@"location"]) {
49
+  if (![CLLocationManager locationServicesEnabled]) {
50 50
     return resolve(RNPermissionStatusNotAvailable);
51 51
   }
52 52
   if ([CLLocationManager authorizationStatus] != kCLAuthorizationStatusNotDetermined) {