You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2016/11/05 01:04:17 UTC

[1/2] cordova-plugin-geolocation git commit: corrected KCLAuthorizationStatus error, changed to always removed user of [manager locationServicesEnabled]. Must return [CLLocationManager locationServicesEnabled] or 'none'

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 <st...@gmail.com>
Authored: Fri Oct 28 18:20:28 2016 -0700
Committer: Jesse MacFadyen <pu...@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


[2/2] cordova-plugin-geolocation git commit: This closes #84

Posted by pu...@apache.org.
This closes #84


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/34fcfa22
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/34fcfa22
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/34fcfa22

Branch: refs/heads/master
Commit: 34fcfa228593f5d2ee91e8f66f563b7dbeef1600
Parents: 1ff3a9e
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Nov 4 18:04:02 2016 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Nov 4 18:04:02 2016 -0700

----------------------------------------------------------------------

----------------------------------------------------------------------



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