I'm facing a problem concerning the iCloud synchronization process.
When a user decide to activate iCloud, the document stored locally in the app sandbox is moved to the local iCloud directory and then the file in the sandbox is deleted. This is done by the setUbiquitous method.
My problem arise if the user deactivates iCloud in the iPhone settings ( by switching off "iCloud documents and data save" ). In this case the iCloud directory is no more accessible and the app sandbox is void ( because it was deleted by the setUbiquitous method ). Therefore, the user lost all it's data...
One solution could be to always maintain a copy of the iCloud file in the app sandbox... but that seems quite a lot of work. There should be an easier way to do... Anyone has a better idea/solution ??
Thanks for reading ;)