Quote:
Originally Posted by idima
Hi everyone!
I would like to know, if it is possible to sync a database of an iphone app (sqlite) with any database on the server.
The goal is to develope an iphone-application that runs on several iphones as clients and syncs its database with the central database on the server.
Thank you very much!!!
|
Sure!
1) You have to copy the iPhone SQLite DB to the iPhone's Documents folder so you can update it. (google for an example on how to do this)
2) You need a way to access the DB server-- typically through a web app or a web service.
3) You need to write the iPhone synch app to access the Server DB and update the local SQLite DB.
You prolly want to add some sort of timestamp indication at both ends to avoid unnecessary synchs