- This topic has 4 replies, 3 voices, and was last updated 13 years, 8 months ago by TheiPhoneMagicGuy.
-
AuthorPosts
-
wobMemberHi @all,
I have created al little App and I want to run it offline. I enabled the offline support “AppCache Support” in the Design Center. I load up the html-Data to my webspace and when I run the App, it will load all the images and files which are gathered in the manifest-file. Then the app runs smooth and fast. So far – so fine. But: after closing the app, all the data from the cache is cleared. The app will NOT work offline.
When I start the App anew, it again takes 20 or more seconds to load the data before I can use the App.Is there any chance to cache the App-data permanent in the iPhone?
Thanks for any help!
Wolfgang
support-michaelKeymasterHi Wolfgang,
I’ve asked one of our devs to help look at this problem. I will let you know what we find out.
Wayne
Genuitec Mobile Team
support-michaelKeymasterMobiOne offline support is based on the HTML5 appcache spec. When you set the offline support property in the Design Center, MobiOne creates and maintains an appcache manifest file which must be included in your upload to your webserver. MobiOne manifest files are named with the pattern <yourdesignfilename>.manifest.
The additional requirement is that your webserver must be configured to serve manifest files with text/cache-manifest MIME type. See this Section 3 of this doc http://www.w3.org/TR/offline-webapps/. If the manifest file is returned with any other MIME type then no offline caching will not be performed.
Let me know if you need assistance configuring your webserver to return
Wayne
Genuitec Mobile Team
TheiPhoneMagicGuyMember@support-wayne wrote:
… The additional requirement is that your webserver must be configured to serve manifest files with text/cache-manifest MIME type. See this Section 3 of this doc http://www.w3.org/TR/offline-webapps/. If the manifest file is returned with any other MIME type then no offline caching will not be performed.
Let me know if you need assistance configuring your webserver to return
Wayne
Genuitec Mobile TeamHi Wayne,
First of all, I have started using this app for only 4 days and I absolutely love it!
However, I am too having problems with the AppCache settings to run my app offline.I have created my first web app at http://www.iphonestreetmagic.com/magic-box/magic-box-home.html
I have hosted my web app with Godaddy web hosting and I do not know how to configure the web server to return the correct MIME type. Should I contact the tech support of Godaddy to assist me? What should I tell him? Or is there something that I could do to resolve this issue. I really want my app to be able to run offline.
Best regards,
Raymond
TheiPhoneMagicGuyMemberHi Wayne,
I have managed to solved the offline cache problem!
What I did is to look for the .htaccess file in the web server and add the following line to it:
AddType text/cache-manifest .manifestI also have to first clear all the cache in Safari browser on my iPhone 4 (IOS4.3), restart my iPhone before I type in the URL to my app on Safari. You will see a “Updating” message on the screen. After that, choose “Add to Home Screen” and add the icon to your home screen springboard. Now put your phone in flight mode and launch your app. Your app is now avaliable for offline usage!
Cheers!
Raymond Ee -
AuthorPosts