We are working on iOS 11 Files App extension, we are able to show folders, files & thumbnails correctly inside Files App. However when it comes to storing metadata of a file such as File Tags(Colors), Folder favorites which are set by user we are facing a problem. Though we are setting the Working set but this is not persisted during Files App restarts. It shows Files tags from my File Provider Extension briefly in Recent items in Files App, however it disappears afterwards. These tags meta data is not persisted after Files app restarts as well. In WWDC '17 Video we could see the folks mentioning about DB, Who has to create and maintain this DB?
When ever I relaunch Files App I could see some DB query going on as below. However our provider never listed in the results of this DB Query.
Reusing collector for descriptor with query (((FieldMatch(kMDItemContentTypeTree, "public.item")))) && ((kMDItemIsTrashed != "1")) && ((kMDItemFileProviderID == "*" && _kMDItemBundleID != "com.apple.fileprovider.fileproviderd*")) && (kMDItemUserTags == "*")
Is there any persistence logic our File Provider Extension is missing? Does our File Provider Extension has to create & maintain this DB? or it is just ONE DB for Files App and extensions can write into it?
I am referring to the talk from below URL