跨平台移动应用解决方案 [英] Cross-Platform Mobile Application Solution

查看:170
本文介绍了跨平台移动应用解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的移动应用程序可以在移动设备上运行(使用Android,iOS,WP7等操作系统)。这个应用程序将从在线数据库获取数据,然后将它们存储到设备中的本地数据库,我可以做数据的CRUD。有三个想法:

I am developing an mobile application which can be run on mobile devices (with OS like Android, iOS, WP7...). This application will get data from online database then store them to local database in device and I can do CRUD with data. There are three ideas:


  1. 我将创建一个Web服务来处理主机上的数据库,并使用一些跨平台框架构建应用程序,然后连接到webservice以获取和将数据放到服务器。问题:

  1. I'll create a webservice to handle with database on host and use some cross-platform framework to building an app then connect to webservice in order to get and put data to server. Issues:


  • 我应该使用哪种技术来创建webservice? (RESTful / SOAP ...?)

  • 哪种类型的返回数据易于处理? (XML / JSON ...?)

  • 如何在主机上的本地数据库和数据库之间同步?

我将提交一个加载外部URL并构建网站的应用程序(具有我需要使用数据库的所有功能)。问题:

I'll make an application for loading an external URL and build a website (with all of features that I need to work with database). Issues:


  • iOS,Android,WP7 ...接受在应用程式中加载外部网址吗?


我将使用跨平台框架来创建应用程序,它将与本地数据库一起使用。我只处理本地数据库和主机数据库之间的同步。问题:这是最好的数据库和最好的框架吗?

I'll make an application using cross-platform framework and it will work with local database. I just handle syncing between local database and host database. Issue: which is the best database and best framework to do this?

谢谢

推荐答案

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

好运!

这篇关于跨平台移动应用解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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