我在iPhone 4S上使用Phonegap 2.7.0。当我第一次打电话给.getPicture
时,从库中选择一张照片后不会触发回调。之后,一切都很好,直到应用程序重新启动。我的代码:Phonegap camera.getPicture - 第一个电话没有回调
var captureSuccess = function (imageURI) {
alert('Success');
};
var captureError = function (error) {
alert('Error');
};
navigator.camera.getPicture(captureSuccess, captureError, {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
});
当我使用DATA_URL
作为sourceType
回调被解雇每次。
感谢您的任何建议。
您是否找到了解决此问题的方法? –