angular - Ionic2 App, File does not exist -
openfile(){ console.log("openfile"); this.fileopener.open('/assets/hello', 'application/rtf') .then(() => console.log('file opened')) .catch(e => console.log('error openening file', e)); }
i want open rtf file in assets folder in app. have used file opener plugin. when i'm running app got error openening file – {status: "9", message: "file not exist"}
.
it's impossible open files "assets/*" fileopener. fileopener needs real file path.
Comments
Post a Comment