Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 895F811CA1 for ; Wed, 3 Sep 2014 23:48:46 +0000 (UTC) Received: (qmail 44359 invoked by uid 500); 3 Sep 2014 23:48:46 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 44333 invoked by uid 500); 3 Sep 2014 23:48:46 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 44324 invoked by uid 99); 3 Sep 2014 23:48:46 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 23:48:46 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 211829B2B71; Wed, 3 Sep 2014 23:48:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: commits@cordova.apache.org Message-Id: <8a86ca09375047779640dc0ee18d0783@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: CB-7461 - Geolocation fails in Camera plugin in iOS 8 Date: Wed, 3 Sep 2014 23:48:46 +0000 (UTC) Repository: cordova-plugin-camera Updated Branches: refs/heads/master b3b43b1f3 -> 599ab3109 CB-7461 - Geolocation fails in Camera plugin in iOS 8 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/599ab310 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/599ab310 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/599ab310 Branch: refs/heads/master Commit: 599ab31090afe2eff80bd5d16f1190550a494491 Parents: b3b43b1 Author: Shazron Abdullah Authored: Wed Sep 3 16:48:42 2014 -0700 Committer: Shazron Abdullah Committed: Wed Sep 3 16:48:42 2014 -0700 ---------------------------------------------------------------------- plugin.xml | 5 +++++ src/ios/CDVCamera.m | 3 +++ 2 files changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/599ab310/plugin.xml ---------------------------------------------------------------------- diff --git a/plugin.xml b/plugin.xml index 448e046..09599e5 100644 --- a/plugin.xml +++ b/plugin.xml @@ -143,6 +143,11 @@ + + + + + http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/599ab310/src/ios/CDVCamera.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index fc1afb4..ac20c39 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -315,6 +315,9 @@ static NSSet* org_apache_cordova_validArrowDirections; NSMutableDictionary *EXIFDictionary = [[controllerMetadata objectForKey:(NSString *)kCGImagePropertyExifDictionary]mutableCopy]; if (EXIFDictionary) [self.metadata setObject:EXIFDictionary forKey:(NSString *)kCGImagePropertyExifDictionary]; + if (IsAtLeastiOSVersion(@"8.0")) { + [[self locationManager] performSelector:NSSelectorFromString(@"requestWhenInUseAuthorization") withObject:nil afterDelay:0]; + } [[self locationManager] startUpdatingLocation]; return; }