I've been reading around but I didn't get to a solution yet. I'm downloading a pdf file with FileTransfer successfully. It is placed in a folder called Documents and the location looks like this: /Users/myusername/Library/Application Support/iPhone Simulator/5.1/Applications/C62E5802-56A8-48BF-B57C-695801F3C8D6/HelloWorld.app/Documents/11.pdf
I am trying to use ChildBrowser to open it and I had no success so far.
The code to open is this:
cordova.exec("ChildBrowserCommand.showWebPage", path );
When path is external (e.g. http://www.google.com/) it works well (with the domain whitelisted).
I have tried all of these paths with no success:
file:///Users/myusername/Library/Application Support/iPhone Simulator/5.1/Applications/C62E5802-56A8-48BF-B57C-695801F3C8D6/HelloWorld.app/Documents/11.pdf
file:////Users/myusername/Library/Application Support/iPhone Simulator/5.1/Applications/C62E5802-56A8-48BF-B57C-695801F3C8D6/HelloWorld.app/www/Documents/11.pdf
file:///Documents/11.pdf
What do I need to do to get to it? Looking at the app location above, I cannot find the www folder either (I assume it has been packaged)
This is all in the simulator, cordova 2.1.0 and latest ChildBrowser .