Open a local HTML file in device's browser

You must Login before you can answer or comment on any questions.

How would one open a local HTML file in Mobile Safari or the Android browser?

The file "help.html" is in Resources/ along with app.js.

I would have thought something like:

var url = Ti.Filesystem.resourcesDirectory + Ti.Filesystem.separator + "help.html";
Ti.API.info("Opening help: " + url);
Ti.Platform.openURL(url);
would be what I'm looking for, but it doesn't do anything (other than print the url).

— asked 2 years ago by K T
0 Comments

1 Answer

Accepted Answer

All apps in iOS work in a sandbox and have no access to the ressources of an other app. Because this, Mobile Safari can’t open your local app files.

Your Answer

Think you can help? Login to answer this question!