Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements, reviews, and improves CloudKit and iCloud sync in iOS/macOS apps, covering CKSyncEngine, SwiftData, and key-value storage.
95% 100%+5 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
We are adding `CKQuerySubscription` to get server notification changes in CloudKit. Do we need to manually configure push notifications in the Apple Developer Portal and create dedicated APNs certificates for CloudKit sync pushes?
The response states that CloudKit automatically configures APNs push entitlements when CloudKit capability is enabled.
3 of 3 safety checks passed
Advanced CloudKit patterns including incremental sync with CKFetchRecordZoneChangesOperation, sharing with CKShare, record zone management, CKAsset file storage, batch operations, and CloudKit Dashboard.
Fetches only records that changed since the last sync. Works with private and
shared databases only. Provide a server change token per zone; use nil for
the initial fetch.
import CloudKit
final class IncrementalSyncManager {
private let database: CKDatabase
private var changeTokens: [CKRecordZone.ID: CKServerChangeToken] = [:]
private let tokenCacheURL: URL
init(database: CKDatabase, cacheDirectory: URL) {
self.database = database
self.tokenCacheURL = cacheDirectory.appendingPathComponent("changeTokens.data")
loadTokens()
}
Next to this one in the catalogue, plus more from the same author.