Google Drive Realtime API脱机和同步支持 [英] Google Drive Realtime API offline and sync support

查看:388
本文介绍了Google Drive Realtime API脱机和同步支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为透明的离线和同步支持协作持久性数据构建移动网络应用程序。我正在考虑将Google Drive Realtime API用于后端。 API支持脱机和同步的功能如何?它只是从包含的API脚本自动地工作,还是应该使用一些插件?我搜索了文档没有运气。

离线和同步支持的意思是,在离线时,应该有可能
<$ p $编辑以前从服务器检索到的文档/对象的最新同步版本
- 创建新文档/对象
- 在本地存储所有文档/对象

只要应用程序再次联机,本地存储的所有修改和新文档/对象都应该合并或同步 与服务器版本。

解决方案

没有明确的脱机支持。 API可以很好地处理片状互联网连接,但不能加载或完全脱机创建。



我不确定同步支持是什么意思,但如果你有一个互联网连接,它会自动同步来自协作者的变化,并将它们保存在服务器上。


I want to build a mobile web app with transparent offline and sync support for collaborative persistent data. I am considering using Google Drive Realtime API for the backend. How well is offline and sync supported by the API? Does it just work "automagically" from the included API scripts, or should I use some "plugin"? I have searched the documentation without luck.

What I mean by offline and sync support is that, when offline, it should be possible to

- edit the latest synced version of a document/object previously retrieved from the server
- create new documents/objects
- store all documents/objects locally

As soon as the app goes online again, all modifications and new docs/objects stored locally should be "merged" or "synced" with the server versions.

解决方案

There is no explicit offline support. The API will deal well with flaky internet connections, but you can't load or create entirely offline.

I'm not sure what you mean by sync support, but if you have an internet connection it will automatically sync changes from collaborators and persist them on the server.

这篇关于Google Drive Realtime API脱机和同步支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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