0
openFile(){
console.log("openfile");
this.fileOpener.open('/assets/hello', 'application/rtf')
.then(() => console.log('File is opened'))
.catch(e => console.log('Error openening file', e));
}
我想打开RTF文件是资产的文件夹在我的应用程序。 我已经使用File Opener插件。 现在,当我运行的应用程序时,我得到了错误openening文件 - {status: "9", message: "File does not exist"}
。Ionic2应用程序,文件不存在
尝试'this.fileOpener.open(资产/ hello.rtf', '应用程序/ RTF')' –
我试过了也不过同样的错误。 –