Posts

Post not yet marked as solved
0 Replies
55 Views
I'm struggling to find a way to monitor the progress (in percent, or bytes) of a download from iCloud Drive. I.e. files outside of the app's ubiquitous document folder. Our app provides a directory browser (which is accessed using a security scoped bookmark granted by the user). In this browser we want to enable users to download files from iCloud analogous to the user experience provided in Files.app. It seems that NSMetaDataQuery would be the right way to go nowadays. However i don't get any results for queries outside of my own app container. I suppose that's a permission problem? Luckily we can get most of what we need using url's resource values. Also initiating and canceling a download works using NSFileManager. However i found now suitable way of determining a download's progress. NSURLUbiquitousItemPercentDownloadedKey is deprecated and doesn't give any results. Did i overlook something? Is there a way to get NSMetaDataQuery working with security scoped bookmarks to folders?
Posted
by luzifer.
Last updated
.
Post marked as solved
2 Replies
489 Views
I've been struggling to get the root path of local storage provider. E.g. /private/var/mobile/Containers/Shared/AppGroup/0C7A3DB2-BA52-4B54-XXXX-E95027E673A9/File Provider Storage. Users can grant access to folders for our drum sampler app in order to use audio samples without importing them and because we have facilities to quickly explore samples. There are two reasons why i want to use this: To display "On My iPad"/"On My iPhone" when users explore the file Preferably in project files we would like to store paths to files in a way that projects still open correctly after re-installation of a user's device. After poking around it seems that File Provider Storage is basically just an app-group named group.com.apple.FileProvider.LocalStorage however we don't have permissions to join that group.
Posted
by luzifer.
Last updated
.