使用英特尔应用框架进行离线缓存? [英] Offline caching with Intel app framework?

查看:175
本文介绍了使用英特尔应用框架进行离线缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始一个艰难的旅程,为我妻子的语言病理学实践开发一个小应用程序。我们希望发布一个应用程序,其中包含几个基于html5的游戏,可以促进语言开发。目前我正在寻找intel app框架和xdk来做到这一点。我们计划从一个简单的游戏(例如构建单词)开始,然后随着时间的推移添加更多游戏。

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.

我的问题是这个,html 5有一个使用清单的缓存机制。如果我将游戏限制在单个页面,我可以将游戏存储在Web服务器上,而不是强迫用户在安装时使用应用程序下载所有内容吗?这里的目标是允许添加游戏而不强制更新应用程序。我预计每场比赛有几个Mb的声音片段和图片。

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.

提前致谢。

推荐答案

您可以在远程网站中使用HTML5应用程序缓存,并使用 Cordova InAppBrowser ,这样当你点击游戏时,它会打开一个InAppBrowser并从网络服务器加载游戏,这个游戏可以拥有带有应用程序缓存的清单,以便下载所有内容在设备上并启动。

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.

您可以使用英特尔AppFramework 并通过REST API从Web服务器加载游戏列表,点击游戏可以打开InAppBrowser并从Web服务器加载Application Cached游戏网页。这一切都可以在英特尔XDK 中完成

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

这篇关于使用英特尔应用框架进行离线缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆