How to prevent iCloud Drive file eviction

How can I prevent iOS from evicting files from my app's ubiquitous folder?


My app is designed to run on the iPhone when there is no network connectivity. The app stores files in the iCloud drive ubiquitous folder. When/If the phone connects to the network those files will get automatically synced up to iCloud. All of this works well. However sometimes iOS decides to evict files from the iPhone device. This is a problem because the user may need these files after they are evicted and there is no network connectivity.

Replies

Have you ever found a solution for this?
No I never found a solution, and no response from Apple.