Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macobss89

macrumors newbie
Original poster
Jun 5, 2011
11
0
Hi
I'm doing an app with core data and sqlite. I need to sync the database between two iphones or more running the same app, how can i achieve that?
Can anyone help?

Thanks in advance!
 
Hi
I'm doing an app with core data and sqlite. I need to sync the database between two iphones or more running the same app, how can i achieve that?
Can anyone help?

Thanks in advance!

You may need a backend "server" to accomplish this.
 
Bonjour is a service discovery protocol. It is useed to find the other side, not to transfer data. For that, you'll need bsd sockets/CFSocket or NSStream or GameKit.

On the SQLite level, you'll probably have datestamps in each record. Time for creation and time of last modification if modifications are possible. Then you check the time of last sync and then send everything that's newer. Other side imports only things that do not exist or those with newer timestamps.
 
Bonjour is a service discovery protocol. It is useed to find the other side, not to transfer data. For that, you'll need bsd sockets/CFSocket or NSStream or GameKit.

On the SQLite level, you'll probably have datestamps in each record. Time for creation and time of last modification if modifications are possible. Then you check the time of last sync and then send everything that's newer. Other side imports only things that do not exist or those with newer timestamps.

your information gave me a head start, but can you refer me to resources to read? or some sample code ?
 
Hi
I'm doing an app with core data and sqlite. I need to sync the database between two iphones or more running the same app, how can i achieve that?
Can anyone help?

Thanks in advance!

I have created app in adobe flex builder where data comes from SQLite database.
My question is when i m goin to submit application in app store, what should i do to sublit database along with it??
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.