I'm developing an NSFileProvider. In the Files app, in the folder view, the download badge appears next to every file, independently by the value returned by the isDownloaded function in the corresponding file provider item, as shown in the figure below:
The interesting things I noticed are:
Can you help me hide the badge for the files which were downloaded?
I checked Drive and Dropbox, and the badge works as expected, so I'm missing something for sure.
To double check, I tried to implement isDownloaded to always return true, but the badges still appear. They disappear just when I remove the implementation.
I came across the same problem and although the question is already a "little" old, it might help others. Setting the isDownloaded
property to yes, gives your item the correct state as you can see in the info popup:
[
The solution is to set the property isMostRecentVersionDownloaded
to true if the local file (if existent) is the most recent version on the server. This does not check if the file is really available on the device.
From the docs:
A Boolean value that indicates whether the item is the most recent version downloaded from the server.