mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-19 03:42:52 +08:00
CB-7461 - Geolocation fails in Camera plugin in iOS 8
This commit is contained in:
parent
5c1394058c
commit
fa30a56760
@ -143,6 +143,11 @@
|
|||||||
<framework src="AssetsLibrary.framework" />
|
<framework src="AssetsLibrary.framework" />
|
||||||
<framework src="MobileCoreServices.framework" />
|
<framework src="MobileCoreServices.framework" />
|
||||||
<framework src="CoreGraphics.framework" />
|
<framework src="CoreGraphics.framework" />
|
||||||
|
|
||||||
|
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
|
||||||
|
<string></string>
|
||||||
|
</config-file>
|
||||||
|
|
||||||
</platform>
|
</platform>
|
||||||
|
|
||||||
<!-- blackberry10 -->
|
<!-- blackberry10 -->
|
||||||
|
@ -315,6 +315,9 @@ static NSSet* org_apache_cordova_validArrowDirections;
|
|||||||
NSMutableDictionary *EXIFDictionary = [[controllerMetadata objectForKey:(NSString *)kCGImagePropertyExifDictionary]mutableCopy];
|
NSMutableDictionary *EXIFDictionary = [[controllerMetadata objectForKey:(NSString *)kCGImagePropertyExifDictionary]mutableCopy];
|
||||||
if (EXIFDictionary) [self.metadata setObject:EXIFDictionary forKey:(NSString *)kCGImagePropertyExifDictionary];
|
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];
|
[[self locationManager] startUpdatingLocation];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user