ionic-team / ionic-team/cordova-plugin-ionic-webview

Image not rendered in Ios

Open
#614 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

I have tried all the suggestions mentioned and still cannot render Image in IOS. Can I have have some insights on this my code is mentioned below.

private copyFileToLocalDir(namePath, currentName, newFileName) {
this.file.copyFile(namePath, currentName, cordova.file.dataDirectory, newFileName).then(success => {
this.lastImage = newFileName;
if (!this.images || this.images.length == 0) {
this.images = [];
}
this.images.push(this.pictureService.pathForImage(newFileName));
this.machineService.setImages(this.images);
}, error => {
console.log('copyFileToLocalDir', error);
this.showAlert('Error while storing file.');
});
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.