1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    openthesky7(at)gmail.com
    Posts
    54
    Vote Rating
    1
    openthesky7 is on a distinguished road

      0  

    Default running Sencha Touch Web Application as local app on jailborken iPhone

    running Sencha Touch Web Application as local app on jailborken iPhone


    I was wondering if it is possible to run Sencha Touch applicaion on iPhone without network connection.

    If you have jailbroken iphone it is possible. I've checked it. It works

    I assume that you have sshd on the device.

    1. Create directory /private/var/opt/WEBAPPS where you will locate your local webapps. Create in WEBAPPS folder YOUR_WEBAPP_NAME with your web application and copy it to this location via scp.
    2. Create shortcut to your network Sencha Touch web application on home screen.
    3. In directory /private/var/mobile/Library/WebClips/ you will find folder [some_hex_numbers].webclip with Info.plist pointing to you application.
    4. Modify the Info.plist file:
    Code:
    <key>URL</key>                                                                                                  
    <string>file:///private/var/opt/WEBAPPS/YOUR_WEBAPP_NAME/index.html</string>
    Hint: You could have problem with absolute file location in html and css files. So you will have to correct files.

    Voila! : ) Right now you can run your application localy without network. Could be helpful to run static application frame or something else not using network.

  2. #2
    Ext JS Premium Member
    Join Date
    Oct 2008
    Posts
    5
    Vote Rating
    0
    mrq is on a distinguished road

      0  

    Default


    interesting, do you think is it possible to package the files as an ipa archive, too?

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Location
    openthesky7(at)gmail.com
    Posts
    54
    Vote Rating
    1
    openthesky7 is on a distinguished road

      0  

    Default


    I assume that you could do this with PhoneGap.

Similar Threads

  1. Sencha Touch app deployment to IPhone and Android
    By m11 in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 24 Oct 2011, 12:53 AM
  2. Can you add a photo from iPhone to a Sencha Touch application
    By kpopov in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 25 Feb 2011, 3:18 AM
  3. Looking for a Sencha Touch Developer to create an awesome web app!
    By WeFeast in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 7 Nov 2010, 12:10 AM
  4. sencha touch application for the iphone / android application store
    By wpichler in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 31 Aug 2010, 6:17 AM
  5. Turning Sencha Touch-based app into a true native iPhone app?
    By inapp in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 21 Jul 2010, 5:59 PM

Thread Participants: 1