Handle permissions
Implements https://github.com/nextcloud/files-clients/issues/22
Currently on iOS files in file provider cannot be directly modified in 3rd party apps like Word or Pages, as we use the old NSFileProviderExtension instead of the new NSFileProviderReplicatedExtension available for iOS16+. The old implementation uses virtual files instead of a full sandbox representation of files, which makes 2 way sync not possible for 3rd party apps, as they rely on the actual files instead of the virtual ones.
Implementing NSFileProviderReplicatedExtension has been discussed between me and @claucambra and can be a potential feature.
@tobiasKaminsky @marinofaggiana
More info here: https://developer.apple.com/documentation/fileprovider
Moreover, with the new way of representing files (as a sandbox) we may lose the ability to show shared files in the file provider, due to privacy concerns or sync issues, but this must be investigated further