ionic
, Xcode
및 cordova-plugin-camera
을 사용하여 내 아이폰의 라이브러리에 액세스하고 있습니다. IOS 11.1.2에서 실행됩니다.Cordova 카메라 플러그인 IOS 11이 라이브러리에서 이미지를 선택할 수 없음
[발견] 오류가 발생했습니다
내가 모든 권한이 모두 설정되어 생각하지만 난 내 이미지 피커 라이브러리에서 그림을 클릭있을 때 (이미지 선택 도구가 표시됩니다),이 오류를 받고 있어요 확장을 발견하는 동안 오류 도메인 = PlugInKit 코드 = 13이 주제에 따라 사용자 정보 = {취소 NSLocalizedDescription = 쿼리}
을 "쿼리가 취소" PhotoPicker discovery error: Error Domain=PlugInKit Code=13가이 권한 오류의 부족이 될 수 나타납니다.
아래에서 볼 수 있듯이 Info.plist
이 설정되어 있으며 내 실수가있는 곳을 찾을 수 없습니까? 정확히 같은 문제를 갖는
// FUNCTION TO OPEN MY IPHONE'S LIBRARY AND SELECT A PIC
$scope.takePic = function()
{
navigator.camera.getPicture(
function(uri){
//console.log(uri);
},
function(){
\t $ionicPopup.alert({
\t title: 'Error',
\t template: 'Impossible'
\t });
},
{
\t destinationType: 1,
\t sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
\t allowEdit: false,
\t saveToPhotoAlbum: false,
\t quality: 30,
}
);
};
<!--LINES ADDING IN MY CONFIG.XML TO SET THE INFO.PLIST FILE -->
<edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="merge">
<string>need camera access to take pictures</string>
</edit-config>
<edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="merge">
<string>need to photo library access to get pictures from there</string>
</edit-config>
<edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
<string>need location access to find things nearby</string>
</edit-config>
<edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge">
<string>need to photo library access to save pictures there</string>
</edit-config>
<!-- BUTTON THAT IS CALLING THE FUNCTION -->
<button ng-click="takePic()" style="font-weight:300;border-radius:10px 10px 10px 10px;" class="button button-positive button-block">Take picture</button>
동일한 문제가 있습니다. – Sifeng