Data Synchronization between mobile and webserver

陌路散爱 提交于 2020-01-02 06:53:15

问题


How would you implement a data synchronization solution that ensures data on a mobile device and web server are in sync.


回答1:


Take a look to this tutorial (part one and part two), basically what they do is add a timestamp attribute storing the last modifications. It is developed to synchronize with the parse.com backend service but it is extendable to any backend.




回答2:


We use a Unix-Timestamp in our company for this. The Server is comunicating with us in json over tls and client is using AsyncSocket. For Web-Server (https) you can take for example a REST-service and ASIHTTP for client. But our solutions are used for client independent services, so if you have only access with IOS/OS X it's maybe easier to use other solutions for direct synchronization :)



来源:https://stackoverflow.com/questions/16193422/data-synchronization-between-mobile-and-webserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!