cordova-plugin-file-opener2 icon indicating copy to clipboard operation
cordova-plugin-file-opener2 copied to clipboard

Unable to open in iOS emulator

Open customautosys opened this issue 7 years ago • 5 comments
trafficstars

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".

customautosys avatar Aug 22 '18 06:08 customautosys

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

genyschools avatar Sep 05 '18 03:09 genyschools

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.

shnist avatar Dec 21 '18 10:12 shnist

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.

customautosys avatar Dec 22 '18 12:12 customautosys

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

shnist avatar Feb 26 '19 15:02 shnist

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

FloryanFilip avatar May 10 '19 12:05 FloryanFilip