putting apps from website to ipod touch possible?

Discussion in 'iPod touch' started by Will, Nov 30, 2007.

  1. Will

    Will New Member

    Joined:
    Oct 16, 2007
    Messages:
    42
    Likes Received:
    0
  2. RoundysSince

    RoundysSince New Member

    Joined:
    Oct 16, 2007
    Messages:
    61
    Likes Received:
    0
    Those are WebApps, not native. You need to access them with Safari.
  3. Scythal

    Scythal New Member

    Joined:
    Nov 27, 2007
    Messages:
    413
    Likes Received:
    4
    Device:
    iPod touch
    There is a way, but it's not straightforward.

    Since Safari currently doesn't allow you to access local files in file:// mode, you have to install a server like Lighttpd or Apache. I didn't compare them both, the first one takes about half a megabyte in memory and doesn't seem to be that heavy.

    So:
    • Install Lighttpd.
    • Download the application on your PC/Mac, or on your iPod, the former being easier. There are lots of web ripping softwares out there, I simply tried using the wget command, which also exists for the iPod, thanks to Erica Sadun's ported utilities.

      By the way, sometimes you have to make the website server think you're an actual Safari on iPod. With wget, you can use the following flag to achieve this:

      -U "Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/3B48b Safari/419.3"

      You'll see the difference on jailbreakme.com, for example

      Please Register or Log in to view images



      Make sure you have all the necessary files. For example, Belfry SciCalc (*) needs btnglossmoz.png and pngfix.js which are easily missed by ripping programs.
    • Copy the website contents under /private/var/root/Sites on the iPod, under a subdirectory to keep things tidy. I won't go into the details for that, if the files are on the PC use WinSCP or another tool to do the transfer.
    • From Safari, you can access the local files by using http://127.0.0.1/<subdirectory name>. Don't try localhost or the name of your iPod, it won't work. The IP address willl, but it will be slow as it needs to pass by the Wi-Fi router. In fact, using 127.0.0.1 worked with me even if the Wi-Fi was off, which is nice! Logical, but nice nevertheless.

    You won't have automatic updates of the web applications.

    Another way would be to be able to access local files directly without an http server. A port of Opera or the so-heavy Mozilla? Or a future fix of Safari?

    (*) <disclaimer>This is for the sake of the example of course. You should of course make sure ripping the website you need is legal! </disclaimer>

    Please Register or Log in to view images

Share This Page