Prohibit exporting or sharing documents in UIDocumentBrowserViewController

92 views Asked by At

Is there any way to prohibit exporting files in my UIDocumentBrowserViewController-based application that also provides a FileProvider?

  • The user should only be allowed to view and edit files in the app.
  • The user should be able to move files around within the FileProvider resource, add new folders, ...

Context:

  • I'm building an enterprise app that grants access to a network file system with sensitive information.
  • I'm using a FileProvider extension that only can be used inside my app.
  • I thought of achieving this via the FPUIActionExtensionViewController by throwing authentication errors if the FileProvider is being accessed from other apps.
  • I want to avoid building my own UI and use the one that Apple provides for free.
2

There are 2 answers

0
Adis On

No, not really. Neither would it make sense to have such a control since taking a screenshot is trivial, and even if you could disable that, taking a photo of the screen is still possible.

2
Thomas Deniau On

Yes, this is built-in. Make your app a managed enterprise app ; then you can control access to the files with configuration profiles.