且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

跨平台移动应用解决方案

更新时间:2023-02-03 11:46:02

How to sync between local database and database on host?

对于同步,您可以查看OpenMobster的同步服务。您可以进行所有类型的同步操作

For synchronization, you can take a look at the open source project, OpenMobster's Sync service. You can do all types of sync operations


  • 双向

  • li>
  • 单向设备

  • 启动。

除此之外,所有修改都会自动跟踪并与云同步。当网络连接中断时,您可以让您的应用程式离线。它将跟踪任何更改,并在后台自动同步它与云在连接返回时。此外,当在云中创建新数据时,它会使用推送通知自动与本地数据库同步。

Besides that, all modifications are automatically tracked and synced with the Cloud. You can have your app offline when network connection is down. It will track any changes and automatically in the background synchronize it with the cloud when the connection returns. Also, when new data is created in the Cloud, it is automatically synchronized with the local database using Push notifications.

目前只有Android和iOS才支持原生开发。然而,下一个版本是2.2-M8(3月底)将支持与Android上的PhoneGap的端到端集成,2.2-M9(四月底)将添加iOS。

Currently only native development is supported on Android and iOS. However, the next release which is 2.2-M8 (end of March) will support end-to-end integration with PhoneGap on Android and 2.2-M9 (end of April) will add iOS.

支持PhoneGap将使您能够灵活地使用HTML5和JavaScript等网络技术构建应用程序,以及使用OpenMobster同步您的本地数据。

Support for PhoneGap will give you the flexibility to build the app using web technologies like HTML5, and JavaScript along with Sync for your local data using OpenMobster.

如果你想要纯原生,那么你仍然可以使用同步服务和同步您的本地数据库与您的远程数据库。

If you want to go pure native, then you still can use the Sync service and synchronize your local database with your remote database.

如果您有更多的问题框架

Let me know if you have more questions about the framework

以下是指向开源项目的链接: http: //openmobster.googlecode.com

Here is a link to the open source project: http://openmobster.googlecode.com

好运!