iCloud Drive: File Coordination callbacks are improperly handled for suspended apps
| Originator: | graeter | ||
| Number: | rdar://18879725 | Date Originated: | 05-Nov-2014 02:49 PM |
| Status: | Open | Resolved: | NO |
| Product: | iOS | Product Version: | 8.1.1 |
| Classification: | Crash / Hang / Data loss | Reproducible: | Always |
Consider two apps accessing the same file on an iCloud Drive container:
- App A and B are presenting the same file with NSFilePresenter
- App A is suspended
- App B is in foreground and tries to perform a coordinated access on the shared file:
1. File Coordination tries to ask app A to save all unsaved changes via -savePresentedItemChangesWithCompletionHandler:
2. Unfortunately app A is suspended, so its presentation handler is not called until app A is put to foreground again
3. As a consequence, app B hangs on file coordination until the user switches back to app A.
This completely breaks shared file access on iCloud Drive for iOS.
As soon, as two apps access the same file using UIDocumentPickerModeOpen and file presentation, apps tend to hang.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!