简体   繁体   English

Web 具有离线模式的移动应用程序

[英]Web mobile application with offline mode

To begin, I'm sorry for my awful english:)首先,我为我糟糕的英语感到抱歉:)

I have a web application that will communicate frequently with a server running a webservice offering JSON / XML.我有一个 web 应用程序,它将与运行提供 JSON / XML 的 Web 服务的服务器频繁通信。 The application will send contact details / bills / products, and will have to manage an offline mode.该应用程序将发送联系方式/账单/产品,并且必须管理离线模式。

I thought to use this DOM cache (HTML5).我想使用这个 DOM 缓存(HTML5)。 However I must have constantly an updated customer list, bills etc. in offline mode because I can not make a request to the server.但是,我必须在离线模式下不断更新客户列表、账单等,因为我无法向服务器发出请求。

It is therefore necessary to have an xml file on the mobile... which will be read and modified.因此,需要在手机上保存一个 xml 文件...将被读取和修改。 Is it possible and not too difficult to manage XML plaintext database with ExtJS (or another framework) on a mobile?在移动设备上使用 ExtJS (或其他框架)管理 XML 明文数据库是否可能并且不太难? (Android) (安卓)

Thanks.谢谢。

It's far easier to do with HTML5 storage, which you can use directly without the need for Sencha Touch API calls (providing you're on a supported device, iOS Safari supports web storage). It's far easier to do with HTML5 storage, which you can use directly without the need for Sencha Touch API calls (providing you're on a supported device, iOS Safari supports web storage).

Have a read of this article from the Sencha blog .从 Sencha 博客阅读这篇文章

Have a look at Lawnchair - this can be included in your app without a framework.看看Lawnchair - 这可以在没有框架的情况下包含在您的应用程序中。

If you decide to use Sencha Touch you can use localStorage, which allows you to store key/value pairs in the HTML5 Web Storage on the device.如果您决定使用 Sencha Touch,您可以使用 localStorage,它允许您将键/值对存储在设备上的 HTML5 Web 存储中。

See this tutorial on the Sencha website .请参阅Sencha 网站上的本教程。 You could use localStorage to cache your json feed whilst making static assets available offline with a cache manifest file.您可以使用 localStorage 缓存您的 json 提要,同时通过缓存清单文件使 static 资产离线可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 离线移动Web应用程序存储 - Offline Mobile Web Application Storage 如何在移动Web应用程序中将方向锁定为纵向模式? - How do I lock the orientation to portrait mode in a Mobile Web Application? 将Grails Web应用程序转换为脱机Web应用程序 - Converting Grails web application to offline web application 使用 npm 离线引导 Web 应用程序 - Bootstrapping offline a web application with npm 信息亭模式Web应用程序 - Kiosk mode web application 移动网络应用 - Web Application for mobile PWA 离线模式无法从移动浏览器的缓存中加载 - PWA offline mode not loading from cache on mobile browsers 没有找到在脱机Web应用程序中存储脱机下载文件的方法 - Not finding a way to store the files for offline download in the offline web application Ajax更改为JSON(脱机JjQuery +清单)-脱机Web应用程序 - Ajax change to JSON (Jquery offline + Manifest) - Offline web application 如何在移动设备处于睡眠模式或浏览器处于后台时使用 web 应用程序在移动浏览器中使用 HTML 地理位置 API 获取位置? - How to get location using HTML Geolocation API in mobile browser using web application when mobile is in sleep mode or when browser is in background?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM