0

I'm working on a project that will need to be inside an iOS app as well as a website. It will need to run inside the app since it will must be accessed without a wireless connection.

Is it possible to run my web files inside the app without using something like phone gap?

dcp3450
  • 10,959
  • 23
  • 58
  • 110

1 Answers1

0

What is the web connection for? Is it for user authentication? Is it for parsing data from a website? It really depends what you need an internet connection for, if you need some external data from a website or database then you would need to internally create some stores/sqlite db's to hold the data and sync that data when there is a connection.

If you are just running a client side app that you decided to create in HTML then I'd still use Sencha Touch, then Cordova to get it to compile natively.

You can always "Add to home screen" from Safari, to make it run locally. To do this, just visit the webpage when you have internet then add it to the homepage, it will run fullscreen without an internet connection; it will work fine offline IF AND ONLY IF you don't need to connect for any data.

jrafferty
  • 108
  • 7
  • It doesn't NEED an internet connection as it updates very rarely, maybe once a year, so updating files in the app is fine. – dcp3450 Aug 15 '13 at 14:02
  • Could something like this be combined with a native app then? For example, say there is an app already that's a native iOS app but I want to add this function to the app using the Sencha Touch and Cordova as you suggested. – dcp3450 Aug 15 '13 at 14:05
  • Hm, if you are just trying to get the exact html pages to load you could use a uiwebview and point to local html pages like in http://stackoverflow.com/questions/7063276/how-to-load-local-html-file-into-uiwebview-iphone ... did you consider the "add to home screen" option, I think that would work well here also. Although you could not collect stats or money for it from the App Store that way. – jrafferty Aug 15 '13 at 14:08