【发布时间】:2019-02-28 20:15:20
【问题描述】:
我正在尝试让用户从我的离子原生应用程序上选择图像,代码在iOS上工作,但在Android时选择选择oply oply oply mode,无法在logcat上看到错误。
我的方法:
accessGallery(){
this.camera.getPicture({
sourceType: this.camera.PictureSourceType. SAVEDPHOTOALBUM,
destinationType: this.camera.DestinationType.DATA_URL,
quality: 10
}).then((imageData) => {
this.sanitizeImage('data:image/jpeg;base64,' + imageData);
}, (err) => {
console.log(err);
this.showAlert("Cannot Access Gallery", err);
});
}
任何帮助或建议将不胜感激。
【问题讨论】:
标签: android ionic3 cordova-plugin-camera