Bläddra i källkod

Remove the location background mode check

Mathieu Acthernoene 5 år sedan
förälder
incheckning
f592dc2579
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      ios/LocationAlways/RNPermissionHandlerLocationAlways.m

+ 2
- 2
ios/LocationAlways/RNPermissionHandlerLocationAlways.m Visa fil

@@ -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) {