Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilePresenter should be removed when app enters background #231

Open
pronebird opened this issue Jun 25, 2016 · 1 comment
Open

FilePresenter should be removed when app enters background #231

pronebird opened this issue Jun 25, 2016 · 1 comment
Labels

Comments

@pronebird
Copy link
Contributor

pronebird commented Jun 25, 2016

Hi,

There is an interesting note in iOS documentation regarding File Presenters on iOS:

https://developer.apple.com/reference/foundation/nsfilecoordinator?language=objc

Excerpt:

File Presenters and iOS
If your app enters the background with an active file presenter, any other processes that perform a coordinated read or write on the presented file can deadlock. To prevent this situation, call removeFilePresenter: to remove the file presenter in the applicationDidEnterBackground: method or in response to a UIApplicationDidEnterBackgroundNotification notification. Call addFilePresenter: to add the file presenter again in the applicationWillEnterForeground: method or in response to a UIApplicationWillEnterForegroundNotification notification.

Looking at CDEICloudFileSystem I don't see it following the suggestion from documentation. Is it some legacy notice or is this information still relevant to the latest iOS?

@drewmccormack
Copy link
Owner

Indeed. Looks like that is something we should change. Will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants