Question

I think I did everything I could find on tutorials and apple's documentation. But my Core Data do no get out of my iOS device to the iCloud servers.

In short, the following calls are made :

  • Get Ubiquity token and check that user wants to use iCloud - done - works OK
  • Connect to Ubiquity containers using URLForUbiquityContainerIdentifier: - done - though this should be useless (according to a previous discussion thread)
  • Registered to receive and handle NSPersistentStoreCoordinatorStoresWillChangeNotification, NSPersistentStoreCoordinatorStoresDidChangeNotification, NSPersistentStoreDidImportUbiquitousContentChangesNotification notifications

I do see in the console the messages : -[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](771): CoreData: Ubiquity: mobile~xxxx Using local storage: 1

and

-[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](771): CoreData: Ubiquity: mobile~xxxx Using local storage: 0

and my handlers are called.

I can use the app perfectly in the iOS device, but no data is uploaded to iCloud.

When I delete the app from the device, iOS ask me confirmation if I really want to delete the app, and then asks for a second confirmation because "some iCloud data is pending upload, and I will loose them". I checked that data could be pending for more than 24 hours. And, of course, my iOS device has network and iCloud is working fine.

Any idea of what I could have done stupidly ?

Was it helpful?

Solution

I got it back to work. Actually, I did not change anything. But I fully restored the iOS device. Any explanations will be welcome.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top