Displaying UIDocuments in Files App iOS 13

259 Views Asked by At

I'm trying to integrate my application with the Files App so that documents saved in my application are showed in the Files App, either under the 'iCloud Drive' or 'On My iPhone' folders. I've added the following keys the info.plist file:

UIFileSharingEnabled = true
LSSupportsOpeningDocumentsInPlace = true

I'm also tried saving documents locally into the Documents folder and remotely into the iCloud. In both cases, documents are saved successfully and I can access them programatically from the app. But I am still unable to see a folder in the files app.

I've also noticed when saving local documents, they are being saved into a private directory, i.e: file:///private/var/mobile/Containers/Data/Application/208C2D45-E1E2-4277-8824-0C54F4EA6CFA/Documents/Test.xyz/

As opposed to the default documents directory: file:///var/mobile/Containers/Data/Application/208C2D45-E1E2-4277-8824-0C54F4EA6CFA/Documents/Test.xyz/

What am I doing wrong?

0

There are 0 best solutions below