问题
I'm starting an uphill journey developing a small app for my wife's speech pathology practice. We want to publish an app that contains several html5 based games that promote language development. Currently I'm looking at the intel app framework and xdk to do this. We plan to start with a simple game (building words for example) then adding more games over time.
My question is this, html 5 has a cache mechanism using a manifest. If I limit the games to a single page, can I store the games on a web server rather than forcing the user to download all of the content with the app at the time of install? The objective here is to allow games to be added without forcing updates of the app. I anticipate several Mb of sound clips and images per game.
Thanks in advance.
回答1:
You can use HTML5 Application Caching in remote website and load it in the app using Cordova InAppBrowser, so that when you click on a game, it opens a InAppBrowser and loads the game from webserver, this game can have the manifest with application cache, so that all content is downloaded on the device and launched.
You can develop the main app using Intel AppFramework and load the list of games via a REST API from web server, clicking on game can open a InAppBrowser and load the Application Cached game webpage from web server. This can all be done in Intel XDK
Details on Application Cache can be found here
来源:https://stackoverflow.com/questions/22517341/offline-caching-with-intel-app-framework