13 Aug 2012 7:33 AM #1
Unanswered: Not a true offline application?
Hey so I want to make my application be able to be used when there is no internet. I have built my application through build production. "sencha app build production". All my data has been stored in local storage, and if I turn off the internet and do not close my application the application runs and "seems" like it is running offline. Uh let me explain a little more, I open my application on the ipad in the browser than I do add to home screen. So the scenario i speak of is when the app is "on the ipad". If i close the application and restart it in offline mode it will say "Could not be opened because it is not connected to the internet". How can i bypass this? Any tips?
17 Aug 2012 12:07 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Is this the first time the app has been launched from the homescreen?
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
18 Aug 2012 12:01 AM #3
Have you validated that all your required resources, plug-ins and files are available in your offline environment, if you use the dynamic loading of Sencha components...it will fail in off-line mode.
8 May 2013 11:30 AM #4
Offline Data Caching
I have a production build of an app that is hosted on a web server and can be navigated to using the iPhone's browser. When a user "Adds to Homescreen" is it possible to have the app launch and display cached content when the device is in airplane mode?
I have tried launching it from the homescreen when not in airplane mode (the content displays correctly), and then launching it again with airplane mode activated, and no luck: the device tells me I have to be connected to the internet to even launch the app.
I have seen the discussions about using a cache manifest. I will look into that now, but I would like to know if I need to cache all of the app files, or just the files that are not part of the basic Sencha Touch 2 framework.
Thanks for any help in advance.
9 May 2013 6:00 AM #5
- Join Date
- Nov 2009
- Washington, DC
- Vote Rating
If you move your app into a Sencha Cmd-based project, a cache-manifest file will be automatically generated when you issue a "sencha app build" directive. Note that you may need to configure your web server to send a mime type of type of "text/cache-manifest" for files with a .appcache file extension. See the following URL for more details: