ICloud: how to manage iCloud disconnection?

I am having a problem with the iCloud sync process.

When the user decides to activate iCloud, the document stored locally in the application sandbox is moved to the local iCloud directory, and then the file in the sandbox is deleted. This is done using the setUbiquitous method .

My problem arises if a user deactivates iCloud in the iPhone’s settings (disabling “iCloud documents and saving data”). In this case, the iCloud directory is unavailable, and the application sandbox is invalid (because it was deleted using the setUbiquitous method ). Therefore, the user has lost all the data ...

One solution might be to always keep a copy of the iCloud file in the application sandbox ... but this seems like a lot of work. There should be an easier way to do ... Does anyone have a better idea / solution?

Thanks for reading;)

+5
source share
1 answer

Files are not actually deleted and will be reloaded when iCloud is turned on again. Could you just show a message with this information? In some ways, this is similar to deleting an email account in the settings app. The user probably expects his / her emails to be deleted from the device, but are still available “in the cloud”.

+3
source

All Articles