diff --git a/plugin.xml b/plugin.xml index c660813..c9276e5 100644 --- a/plugin.xml +++ b/plugin.xml @@ -143,6 +143,11 @@ + + + + + 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; }