cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [1/2] cordova-plugin-geolocation git commit: Do not stop updating location when the error is 'kCLErrorLocationUnknown'
Date Tue, 02 Dec 2014 21:15:07 GMT
Repository: cordova-plugin-geolocation
Updated Branches:
  refs/heads/master 41233f66f -> 5c63a069b


Do not stop updating location when the error is 'kCLErrorLocationUnknown'


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

Branch: refs/heads/master
Commit: 55194aab45a17335e7bc581c3ce031c5311991f9
Parents: 887df52
Author: Christopher Blum <christopher.blum@spellboy.com>
Authored: Wed Nov 5 11:23:43 2014 +0100
Committer: Christopher Blum <christopher.blum@spellboy.com>
Committed: Wed Nov 5 11:23:43 2014 +0100

----------------------------------------------------------------------
 src/ios/CDVLocation.m | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/55194aab/src/ios/CDVLocation.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m
index f82b52a..bcb12df 100644
--- a/src/ios/CDVLocation.m
+++ b/src/ios/CDVLocation.m
@@ -343,8 +343,10 @@
         [self returnLocationError:positionError withMessage:[error localizedDescription]];
     }
 
-    [self.locationManager stopUpdatingLocation];
-    __locationStarted = NO;
+    if (error.code != kCLErrorLocationUnknown) {
+      [self.locationManager stopUpdatingLocation];
+      __locationStarted = NO;
+    }
 }
 
 //iOS8+


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


Mime
View raw message