-
31 Oct 2011 7:27 PM #1
Answered: Is possible to create a completely offline app?
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.
-
Best Answer Posted by mitchellsimoens
-
1 Nov 2011 5:30 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
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 @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Nov 2011 5:34 AM #3
Thanks for you reply. But how about audio and video? Can I use local storage too?
-
1 Nov 2011 5:43 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Nov 2011 7:06 AM #5
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
-
1 Nov 2011 7:18 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
File size may be of concern
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Nov 2011 12:46 PM #7
So, it seems to me that I have to go to objective-c...
-
1 Nov 2011 12:50 PM #8Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Nov 2011 1:39 PM #9
-
2 Nov 2011 10:14 AM #10
Seems like a nice case for the Sencha SDK tools;
http://www.sencha.com/blog/sencha-to...loper-preview/


Reply With Quote