Hi all ! Could anyone suggest please … after update to Ionic3, when I want to open pdf file … I see error …
cordova.js:314 Uncaught TypeError: Cannot read property 'fileOpener' of undefined
I use such code …
openURL(url) {
this.platform.ready().then(() => {
this.data_path = url;
win.resolveLocalFileSystemURL(this.data_path, function (FileEntry) {
FileEntry.getMetadata(function (metadata) {
this.fileOpener.open(FileEntry.toURL(), 'application/pdf')
.then(() => console.log('File is opened'))
.catch(e => console.log('Error openening file', e));
})
}, function (err) {
console.log("fail resolve");
console.log(err);
});
});
}