SpokaneDude
SpokaneDude

Reputation: 4974

Can I share CoreData on iCloud?

I have an iPhone app I'm writing that needs to keep an offline data store that users of a specific licensed app can access.

I need a "Cloud" account where several users with different accounts can share the data. Is this possible?

I Googled and searched SO, but can find nothing about this particular topic.

Upvotes: 0

Views: 558

Answers (2)

Abizern
Abizern

Reputation: 150615

An iCloud account is tied to a single user.

If you are asking whether you can set up an iCloud account that can be shared across multiple users; there isn't such a thing.

If you don't want to be responsible for syncing and vending the data yourself, have a look at Dropbox - where users can set up shared dropbox folders to do something similar to what you are asking about.

However, just putting the CD store on a Dropbox folder won't be enough to handle merge conflicts if different users modify the same value. In which case one solution is to have a web service that updates can be sent to, merges resolved, and the data pushed back down to the devices to be stored in their own Core Data stores.

A bit more involved than just putting the store in the cloud - but this stuff is difficult.

Upvotes: 2

Related Questions