Sharing iCloud data between two apps
Frage
I'm wanted find more information regarding this.
I intend to make an app right now with iCloud core data store. And i wish to share that with another app (different bundle Identifier) is it possible? Obviously, i shall include the iCloud capabilities in another app as well ,but with the AppIDs and all, it seems questionable.
Another question if I may, I am planning to use iCloud sync for CoreData and a plist File. From what I know, usually apps take one of the approach, but I needed to sync core data as it is intended, and use a small plist file, which isn't a settings file. Is this a bad way ? or should i just use one of the two?
Lösung
- The identifier used for iCloud storage is different from the bundle identifer used for the app, so, yes, it's entirely possible
- Yes. You can sync Core Data, "documents" and key-values pairs using iCloud in the same app
All else being equal, I think you'd be better putting your plist into your Core Data model (less code).