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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -