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

Why does retrieveCloudDocumentWithName trigger iCloudFilesDidChange? #128

Open
skuske opened this issue Jul 17, 2019 · 2 comments
Open

Why does retrieveCloudDocumentWithName trigger iCloudFilesDidChange? #128

skuske opened this issue Jul 17, 2019 · 2 comments
Labels

Comments

@skuske
Copy link

skuske commented Jul 17, 2019

I am observing iCloud changes through iCloudFilesDidChange and what I am seeing is that calling retrieveCloudDocumentWithName actually triggers iCloudFilesDidChange, which causes iCloudFilesDidChange to be called over and over again if I call retrieveCloudDocumentWithName from within iCloudFilesDidChange.

What I want to do is: observe changes on a specific file, if there is a change, download the file and save it locally. However, due to the fact iCloudFilesDidChange is called over and over again if I call retrieveCloudDocumentWithName from within iCloudFilesDidChange, there's no way to stop that.

Maybe I misunderstood something fundamental - if so, sorry... Thanks for any help.

@Sam-Spencer
Copy link
Member

You haven't misunderstood anything. This is a known issue -- thank you for reporting it here. Check out the swift-rewrite branch for updates to the library. Expect a fix for this soon.

@skuske
Copy link
Author

skuske commented Sep 10, 2019

Does that mean that only the swift-rewrite will get the fix for that?

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