cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] cordova-plugin-geolocation git commit: corrected KCLAuthorizationStatus error, changed to always removed user of [manager locationServicesEnabled]. Must return [CLLocationManager locationServicesEnabled] or 'none'
Date Sat, 05 Nov 2016 01:04:17 GMT
Repository: cordova-plugin-geolocation
Updated Branches:
  refs/heads/master f9f7a23c5 -> 34fcfa228


corrected KCLAuthorizationStatus error, changed to always removed user of [manager locationServicesEnabled].
 Must return [CLLocationManager locationServicesEnabled] or 'none'


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/commit/1ff3a9e3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/1ff3a9e3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/1ff3a9e3

Branch: refs/heads/master
Commit: 1ff3a9e3d02cc49ae9477d9eb54b8cdd031df4f5
Parents: f9f7a23
Author: Sterling <sterlingann@gmail.com>
Authored: Fri Oct 28 18:20:28 2016 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Nov 4 18:02:56 2016 -0700

----------------------------------------------------------------------
 src/ios/CDVLocation.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/1ff3a9e3/src/ios/CDVLocation.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m
index e4b34a1..26802d6 100644
--- a/src/ios/CDVLocation.m
+++ b/src/ios/CDVLocation.m
@@ -73,7 +73,7 @@
             return (authStatus == kCLAuthorizationStatusAuthorizedWhenInUse) || (authStatus
== kCLAuthorizationStatusAuthorizedAlways) || (authStatus == kCLAuthorizationStatusNotDetermined);
         }
 #endif
-        return (authStatus == kCLAuthorizationStatusAuthorized) || (authStatus == kCLAuthorizationStatusNotDetermined);
+        return (authStatus == kCLAuthorizationStatusAuthorizedAlways) || (authStatus == kCLAuthorizationStatusNotDetermined);
     }
 
     // by default, assume YES (for iOS < 4.2)
@@ -87,8 +87,6 @@
 
     if (locationServicesEnabledClassPropertyAvailable) { // iOS 4.x
         return [CLLocationManager locationServicesEnabled];
-    } else if (locationServicesEnabledInstancePropertyAvailable) { // iOS 2.x, iOS 3.x
-        return [(id)self.locationManager locationServicesEnabled];
     } else {
         return NO;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message