Preventing to remove local copy of file

Hello everyone,


My iOS app save some data in iCloud drive for syncing it via all user’s devices. These data must be downloaded locally for the normal operation of the application. When the free space on the device runs out, the system (iOS 11) deletes the local copies of iCloud files. In this case, when the application starts, this data is re-downloaded again. It's not so scary, but if the user does not have access to the Internet, then the application can not work properly because data cann’t be downloaded.

So my question is how do I tell the system that I do not need to delete a file? Is it possible?


Thanks for your attention

Replies

I'm looking for this answer for a year now... :(