Migrate Core Data from iCloud to local after user signed out from iCloud

188 Views Asked by At

I have this scenario:

  1. an app uses core data with iCloud
  2. the user kills the app (it doesn't run even not in the background)
  3. after the app killing, the user signs out from the iCloud on the device
  4. the user starts the app again, the iCloud account is not there anymore, but the user wants the iCloud data to be there again in local store -> manual migration from iCloud to local non-iCloud store needs to be executed

The question is - is this safe ? Is it safe that the iCloud container and/or data will still be there after the user signs out from the iCloud on the device ? I am talking about scenario that e.g. the user will not be using the app let's say 1 month and in the meantime he signs out from the iCloud.

Thanks Lubos

0

There are 0 best solutions below