This is what I do and neither the badge nor the decoration updates:
I call the completionHandler before the upload completes, and isUploaded=NO at that time. Since we use thrift to upload data to remote server, and we need to support both old version(no FileProvider) and new version(FileProvider), and the upload logic is in host App, I store NSFileProviderItem metadata in DB, then after uploading done, update isUploaded=YES and decoration, then signal workingSet.
Working solution from clenart:
After uploading data done, and isUploaded=YES and update decoration, then call completionHandler.
Topic:
App & System Services
SubTopic:
Core OS
Tags: