Results 1 to 10 of 10

Thread: Is possible to create a completely offline app?

  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    4
    Vote Rating
    0
      0  

    Question Answered: Is possible to create a completely offline app?

    I'm planning to develop an app that contains a lot of media. The size of those media will definitely exceed the limit of cache. So, is it possible to create a complete offline app with Sencha Touch just like an app developed with objective-c? Thanks a lot.

  2. Quote Originally Posted by druglee View Post
    So, it seems to me that I have to go to objective-c...
    Or wrap in PhoneGap

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    You will still need to get the media. If it is just images, you can base64 the images and save those images in localstorage. You have to be online to load the app the first time but after that using cache manifest for the pages and then saving things to localstorage, you don't need to be online.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Aug 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Thanks for you reply. But how about audio and video? Can I use local storage too?

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by druglee View Post
    Thanks for you reply. But how about audio and video? Can I use local storage too?
    Not that I am aware of.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  6. #5
    Sencha User
    Join Date
    Jul 2011
    Location
    Utrecht
    Posts
    84
    Answers
    4
    Vote Rating
    3
      0  

    Default

    You could dynamically generate a cache manifest based on the data you want to save off-line. This data is stored on the phone and new data is only fetched if the server has a new/changed version. If you write a php script that outputs the manifest with the files you want to have available off-line it is not a problem at all. When developing you should make an exception for the code files. If you don't debugging will be like hell.

    http://www.thecssninja.com/javascrip...-on-the-iphone

  7. #6
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    File size may be of concern
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  8. #7
    Sencha User
    Join Date
    Aug 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default

    So, it seems to me that I have to go to objective-c...

  9. #8
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by druglee View Post
    So, it seems to me that I have to go to objective-c...
    Or wrap in PhoneGap
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  10. #9
    Sencha User
    Join Date
    Aug 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Or wrap in PhoneGap
    Thanks a lot. I will check that.

  11. #10
    Sencha Premium Member Martin1982's Avatar
    Join Date
    Aug 2011
    Location
    The Netherlands
    Posts
    109
    Answers
    4
    Vote Rating
    0
      0  

    Default

    Seems like a nice case for the Sencha SDK tools;
    http://www.sencha.com/blog/sencha-to...loper-preview/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •