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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -