pwlin / cordova-plugin-file-opener2

A File Opener Plugin for Cordova
MIT License
314 stars 584 forks source link

Unable to open in iOS emulator #224

Open customautosys opened 5 years ago

customautosys commented 5 years ago

Hi, it doesn't work in iOS emulator because when I use entry.toURL(), it returns a file path on my Mac but the plugin is unable to detect it and returns an error of "file does not exist".

genyschools commented 5 years ago

I am also facing the same issue, any one have any idea ?

shnist commented 5 years ago

hi @siauderman, thanks for raising this issue and sorry that no one got back to you. Were you able to resolve your issue in the end? If not please send me the output of cordova info and a code snippet of what you were trying to do and perhaps I can help resolve the problem.

customautosys commented 5 years ago

Hi, so far I've been using InAppBrowser to display my PDF files instead. All I wanted to do was to open some PDFs (I think it's better to open in default app rather than an InAppBrowser). I'll try to send a screenshot sometime.

shnist commented 5 years ago

@siauderman where are you downloading / trying to access the files from? Does the app download the files from somewhere first?

FloryanFilip commented 5 years ago

What helped me was appending 'file://' to start of path string