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/2.4.x Commit: 1ff3a9e3d02cc49ae9477d9eb54b8cdd031df4f5 Parents: f9f7a23 Author: Sterling <[email protected]> Authored: Fri Oct 28 18:20:28 2016 -0700 Committer: Jesse MacFadyen <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
