Django Iphone sync -


I'm rejecting a DJ ango app and an iPhone app, I need to keep them in sync. Users can delete, update and create new objects in the web app, and in the iPhone app. When they come online with the iPhone then both apps should be in sync. Is there an easy way to do this?

Thanks,

Joaquin

In general: someone Not an easy way but I will draw an approach.

If you do not care about overwriting changes: Keep a timestamp of the most recent changes in each record, and place a timestamp of each sync. Upon syncing, you get a list of all updates on the iPhone and all the updates on the server since the last sync. If you write from iPhone to server, then there is a new one from the iPhone timestamp server for that record, and vice versa.

But you probably care to say that you have edited a note called "Where to meet on Friday". It started empty now, on the phone, you have written, "My house." After ten minutes, your friend edits the same note on the server and writes, "Dinner." Who wins? Stack overflow can not answer for you; This is an application-specific one.

OK, then modify the above approach: If both the records and the local version of the local version are edited with the final synchronization, then what do you have to do with the user. This is the basic algorithm.

If you care so much about the changes without any overwriting, then you want to merge the changes in different places in the same document, then your system will become familiar with the complexity of the version control system such as subversion Or GIT is not quite straightforward.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -