iCloudDocumentSync icon indicating copy to clipboard operation
iCloudDocumentSync copied to clipboard

Ipad don't get iCloudFilesDidChange callback

Open SmartHbdev opened this issue 4 years ago • 1 comments

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 avatar Oct 12 '20 20:10 SmartHbdev

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 ?

SmartHbdev avatar Oct 14 '20 18:10 SmartHbdev