[英]is it possible to open a link from ionic cordova app from ios platform in microsoft-edge browser
[英]Image not capturing from iPhone's browser in Ionic Cordova (Browser Platform)
我已經安裝了下面的插件https://github.com/Telerik-Verified-Plugins/ImagePicker
這個插件適用於 android 和 ios 應用程序,也適用於 android 瀏覽器,但它不適用於 iPhone (IOS) 的任何移動瀏覽器。
它在單擊“拍照”按鈕時打開相機,但在單擊“捕獲”按鈕后圖像未顯示並且控制台上出現錯誤。
Unhandled Promise rejection: – "Missing Command Error" – "; Zone:" – "<root>" – "; Task:" – null – "; Value:" – "Missing Command Error" –
public ngOnInit(): void {
this.cameraOptions = {
quality: 50,
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE
};
}
public selectFromGallery(): void {
this.imagePicker.hasReadPermission().then(() => {
this.imagePicker.getPictures({ ...this.cameraOptions, outputType: OutputType.DATA_URL, disable_popover: true }).then((results) => {
if (results !== 'OK') {
for (const result of results) {
this.images.push(`data:image/jpeg;base64,${result}`);
}
}
});
});
}
那么你能幫我解決這個問題嗎?
這是行不通的。 Cordova 插件不適用於 web。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.