https://github.com/krzyzanowskim/appleradar-fileproviderenumeratornotificationsample
NSFileProviderManager.signalEnumerator does not trigger update of UIDocumentBrowserViewController
https://github.com/krzyzanowskim/appleradar-fileproviderenumeratornotificationsample
bugreport fileproviderextension ios
Last synced: 7 months ago
JSON representation
NSFileProviderManager.signalEnumerator does not trigger update of UIDocumentBrowserViewController
- Host: GitHub
- URL: https://github.com/krzyzanowskim/appleradar-fileproviderenumeratornotificationsample
- Owner: krzyzanowskim
- Created: 2021-10-20T14:21:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-20T14:37:42.000Z (almost 4 years ago)
- Last Synced: 2024-04-14T07:11:17.705Z (over 1 year ago)
- Topics: bugreport, fileproviderextension, ios
- Language: Swift
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## FB9715717
### Which area are you seeing an issue with?
FileProvider Framework
Incorrect/Unexpected Behavior### Subject
`NSFileProviderManager.signalEnumerator` does not trigger update of `UIDocumentBrowserViewController`.## Description
Please find attached sample project that demonstrate the issue, along with the recorded video.
Class SessionManager calls NSFileProviderManager.default.signalEnumerator(for: .rootContainer) and extension receives it. The current SessionManage.shared.state value is properly updated from the app, and FileProvider extension gets correct value. The problem is that when FileProviderExtension.item(for:) or FileProviderExtension.enumerator(for:) throw error NSFileProviderError(.notAuthenticated), the UIDocumentBrowserViewController visible to the user does not actually update its view. To refresh the view user has to navigate outside and back.
https://user-images.githubusercontent.com/758033/138114474-a0c36f9d-a78c-4c68-aa49-0e8edf542021.mp4