apple / apple/sample-cloudkit-sync-engine

CKSyncEngine doesn't fetch changes when saving or deleting CKShare

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

Description

I've noticed that saving a `CKShare` using `CKDatabase` directly or deleting a `CKShare` via `UICloudSharingController` doesn't cause `CKSyncEngine` to fetch new changes (nor include them in updates when you call `CKSyncEngine.fetchChanges`) until the app is relaunched.

Is there a recommended way for dealing with `CKShare` together with `CKSyncEngine`?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the CKSyncEngine behavior after saving a CKShare through CKDatabase and deleting one through UICloudSharingController, then call CKSyncEngine.fetchChanges and compare the results before and after relaunch. Done means identifying the supported handling for CKShare changes or documenting a confirmed fix for the missing updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.