apple / apple/sample-cloudkit-sync-engine

CloudKit sync refresh problem when changes going from iOS to macOS

Open
#15 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
270
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I am then testing sync by running this app in my MacBook and my iPhone. Generally sync is working, but the behavior is very different when syncing changes from macOS -> iOS compared to from iOS -> macOS:

1. I open app on both my MacBook and iPhone
2. I add item on my MacBook, it shows up a second later on iPhone
3. On the other hand, if I add item on my iPhone it never shows up on my MacBook until I send app to background and then bring back to foreground.

Is this known/expected behavior? Any way to fix?

I have also tried calling `try await self.database.syncEngine.fetchChanges(.init(scope: .all))` on the mac, but that doesn't seem to help. I must command-tab to another app, and then command tab back to the SyncEngine app to see changes updated in the Mac UI

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.