This is my code to open file. No errors and its printing “File is opened” success message but file is not opened. Am i missing something?
openFile(){
let targetPath = this.file.externalRootDirectory + '/Download/' + 'sample.pdf'
this.fileOpener.open(targetPath, 'application/pdf')
.then(() => console.log('File is opened'))
.catch(e => console.log('Error opening file', e));
}