I'm constantly hitting #22 because days after I build the application something goes strange with provisioning. I've lost access to local downloaded content multiple times while away from computer and it's a little annoying.
As a solution, it would be great if downloaded content in fetch wasn't locked into fetch and the application allowed you to consume the content with other apps, or view downloaded files in the files app.
This pull request enables consuming the downloaded files from the files app:
The side effect, you can extra these files on macOS via iTunes too:
This happens by enabling UIFileSharingEnabled
and LSSupportsOpeningDocumentsInPlace
:
UIFileSharingEnabled
In iOS 11 and later, if both this key and the LSSupportsOpeningDocumentsInPlace key are YES, the local file provider grants access to all the documents in the app’s Documents directory. These documents appear in the Files app, and in a Document Browser. Users can open and edit these document in place.
The downside is that it does show the realm store files in Files.app as they are stored in the documents folder. Perhaps it would make sense to move these files outside of Documents or limit the files exported in some way but I am not aware of a trivial way to do this so I left it.