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

Ipad don't get iCloudFilesDidChange callback #130

Open
SmartHbdev opened this issue Oct 12, 2020 · 1 comment
Open

Ipad don't get iCloudFilesDidChange callback #130

SmartHbdev opened this issue Oct 12, 2020 · 1 comment

Comments

@SmartHbdev
Copy link

Hello,

I have test on my iphone and on my ipad to sync a database and it's working only in one way.
When i save the document on my ipad, my iphone get the iCloudFilesDidChange notification and can update the app content.
But when i do exaclty the same thing from my iphone, iCloudFilesDidChange never get called on my ipad.

After a lot of testing, i have found that last modified date of the document is not updated accross device. I guess i need to download the file to get the updated dates. When i retrieve the document even with old date, the updated document is downloaded with latest data.

This date issue has probably no relation with the iCloudFilesDidChange not called but it's maybe good to know.

Has someone callback accross device issue too ?

@SmartHbdev
Copy link
Author

After a lot of testing, my ipad don't get any callback (startUpdate, recievedUpdate, endUpdate) after a change on my iphone.
It's working fine the other way, some edit on ipad side and iphone get callback some seconds right after.

I can force to reload the file with retrieveCloudDocumentWithName (i need to wait a bit like 30s to get the latest file) on ipad but i won't call it on every screen change or every x minutes. It's probably not a big issue if the same user don't use the same app on 2 devices on the same time since i can update the app at start but it's not very clean.

I don't know if it's a code issue or a iCloud API issue ?

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

No branches or pull requests

1 participant