CloudKitSyncMonitor icon indicating copy to clipboard operation
CloudKitSyncMonitor copied to clipboard

Not catching key errors

Open bnulman opened this issue 4 months ago • 2 comments

Trying to incorporate this into an app I'm working on.

If I turn off iCloud for my app in iCloud settings while the app is running, the status will show as broken, though the error is "Import is broken", rather than "accountNotAvailable". However, if I force quit the app and launch it again, or if I disable iCloud prior to app launch, the status will always show as a gray cloud/"notStarted". In the console, I can see that the error is "Unable to initialize without an iCloud account (CKAccountStatusNoAccount)", but CloudSyncMonitor is not catching that.

Another problem is that it is reporting that sync has completed when actually the sync has only started and is still in progress. This is particularly an issue for large syncs that can take a while because the user thinks the sync is complete but none of their data has appeared.

bnulman avatar Oct 22 '24 19:10 bnulman