CloudKit sync refresh problem when changes going from iOS to macOS
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- ios, macos, swift
- Domain
- desktop-dev, distributed-systems, mobile-dev
Research direction
Reproduce the two-device scenario with the app running on iOS and macOS, comparing Mac-originated and iPhone-originated changes. Start by tracing the macOS refresh path around database.syncEngine.fetchChanges(.init(scope: .all)); done means iPhone changes appear in the Mac UI without switching the app to the background and back.
Written by the indexing model from the issue text.
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:
- I open app on both my MacBook and iPhone
- I add item on my MacBook, it shows up a second later on iPhone
- 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
- Dominant language
- Swift
- Stars
- 270
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apple/sample-cloudkit-sync-engine
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
apple/sample-cloudkit-sync-engine#17 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
apple/sample-cloudkit-sync-engine#13 · 1 comment ·
-
var listID: String Open
Difficulty 1/5 Under an hour Newbie friendliness 42/100
apple/sample-cloudkit-sync-engine#10 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
apple/sample-cloudkit-sync-engine#6 · 3 reactions ·
-
Implementation flaw Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
apple/sample-cloudkit-sync-engine#5 · 14 comments · 1 reaction ·
All issues in apple/sample-cloudkit-sync-engine
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
googleapis/google-cloud-swift#1106 ·
-
bug channel: beta feature: preferences feature: ui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Cocoanetics/SwiftACP#52 ·