Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-28-2010, 09:09 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 3
longnoselittlepittle is on a distinguished road
Arrow Syncing iOS Core Data with remote server which sends XML

My app parses XML from remote server and store the objects in Core Data(SQLite storage). So that user can browse the material when OFFLINE by reading from local storage.

User may make changes to objects when browsing offline which gets stored locally in Core Data SQLite store. Another User makes some changes to object on Remote server and it is stored there. Now when I detect internet connection, my app should sync my local storage with remote server. Which means remote server is updated with changes I made to my Core Data(SQLite storage) when I was offline and my local storage - Core Data(SQLite storage) needs to be updated with what ever changes other user made to remote server.

For example there is a forum and it is stored in my local storage so that I can read and reply when I am traveling. When later on internet is accessible. My app should automatically put all my replies stored in core data to remote server and also bring other posts on remote server into my local storage.

Remote server is sending XML which I'm parsing and storing in Coredata. My problem is how to sync it ?

How both ways communication happens when there is a change?

How to sync only data which has changed and not to IMPORT whole remote server DB and vice-versa ?
longnoselittlepittle is offline   Reply With Quote
Old 11-11-2010, 06:05 PM   #2 (permalink)
nsc
Registered Member
 
Join Date: Nov 2010
Posts: 1
nsc is on a distinguished road
Default

Hi - were you able to find a solution for this? We need to do a similar sync operation between the offline SQLite Store and remote server.
nsc is offline   Reply With Quote
Old 09-30-2011, 02:49 AM   #3 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 362
mpramodjain is on a distinguished road
Default

hi,

any solutions.. me also looking for ont the same track, without any possiblity..

The one I thought was about, getting queries of the modified one on the sqlite from the server, then ..

Thinking about execute those sql queries over coredata.. wondering how could be possble..

Any other ideas.. or fruitful solution.. to sync the server changes in the DB to the Coredata object..
mpramodjain is offline   Reply With Quote
Reply

Bookmarks

Tags
ios4, ipad, iphone, iphone sdk

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 348
6 members and 342 guests
headkaze, mistergreen2011, nobstudio, Objective Zero, revg, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:09 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0