Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 845851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:31:16+00:00 2026-05-15T06:31:16+00:00

I have a Core Data app that will end up being an iPhone/iPad universal

  • 0

I have a Core Data app that will end up being an iPhone/iPad universal application.

I would like to implement cloud syncing so that an iPhone and an iPad both running the app could share data. I’m planning to use the recently released Dropbox API. Does anyone have any thoughts on the best way to go about doing this? The Dropbox API allows for apps to store files on the cloud. What I was thinking was to original store the database (sqlite) for the app on the cloud and then download that database, but I then realized that using that method would make it painfully difficult to merge changes (rather than replacing the whole database).

Any thoughts are appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:31:17+00:00Added an answer on May 15, 2026 at 6:31 am

    If you can get away with it, the easiest way to do synchronization (by far) is to have three copies of your data locally: the copy you last uploaded (“old”), the copy produced by local changes (“mine”) and the copy now downloaded from the server (“theirs”).

    Then, sort all the records in all three files and walk through them one by one:

    • if old == mine, use theirs
    • else if old == theirs, use mine
    • else you have a conflict; do something about it (eg. always use mine, aka “last writer wins”)

    Note that “mine” or “theirs” or “old” might not exist. The rules above still apply in that case; if the result you choose is “does not exist”, then you’ll want to delete the record in the output file.

    Finally, upload the resulting file back to the server so that it will be the “theirs” database for the next guy. Then copy the new file to your local “old” and “mine” databases.

    (There are more space-efficient algorithms than the above… but there aren’t any easier ones 🙂 And disk space is pretty cheap nowadays, particularly if you compress the files.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iphone app that uses Core Data to do storage. I have
I have a Core Data iPhone app that displays Subscription entities where any of
I'm using core data on an iPhone application. I have multiple persisntent stores that
I have an app that has a bunch of Core Data that it needs
Previously, I have an app that uses core data. I use same store url
I was just wondering, I have an app that relies on Core Data for
I'm using core data in my app. I have two entities that are related:
In my iPhone Core Data app I have it configured in a master-detail view
I have been working on a Core Data iOS app that works perfectly through
I have a Core Data-based iPhone app with a pre-populated read-only database. What protection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.