CB-7461 - Geolocation fails in Camera plugin in iOS 8

This commit is contained in:
Shazron Abdullah 2014-09-03 16:48:42 -07:00 committed by Anis Kadri
parent 5c1394058c
commit fa30a56760
2 changed files with 8 additions and 0 deletions

View File

@ -143,6 +143,11 @@
<framework src="AssetsLibrary.framework" />
<framework src="MobileCoreServices.framework" />
<framework src="CoreGraphics.framework" />
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string></string>
</config-file>
</platform>
<!-- blackberry10 -->

View File

@ -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;
}