How to make a native app if I have all the files used to run it over wifi?

Discussion in 'Jailbreaks and iOS Hacks' started by yacoub, Oct 16, 2007.

  1. yacoub macrumors member

    Joined:
    Oct 13, 2007
    #1
    So I have all of the files that are used to make a certain app work online: I have the HTML, the PNGs (images), and the JS (javascript).

    I want to make it work as a native app that doesn't require being online. How do I do this?

    I've confirmed that everything is in the right directory structure to work, by running the application successfully on my desktop without needing to be online. Now I want to port it over to the touch.

    I also have a button icon file to use for it.

    Is there a way to put a local URL into the .plist file that tells the device what to do when the button is pressed? I basically need to tell the device to load a local webpage that is on the machine, not online.

    Do I use localhost:// instead of http:// or something? Are there other changes needed in the plist file to get it to work right?

    Also, do I need an actual "application' file or can I just have these HTML pages and the plist and default and button image files and be good to go?

    Thanks for any help.
     
  2. fishkorp macrumors 68020

    fishkorp

    Joined:
    Apr 10, 2006
    Location:
    Ellicott City, MD
    #2
    i think it needs to be an application, written with UIKit, compiled, etc, then jailbreaking the device and installing it. as far as i know native apps can't be webpages.
     
  3. yacoub thread starter macrumors member

    Joined:
    Oct 13, 2007
    #3
    Hmm, well I've seen that one can create a button app that opens Safari to access a remote URL (i.e. one on the Internet). Is there no way to have Safari access a file on the device itself... i.e. locally?

    Or is there a way to use this UIKit thing you mentioned to compile HTML, JavaScript, and PNG image files into an application? I would be able to provide the content if someone knows how to do it.
     

Share This Page