This project demonstrates using CKSyncEngine to sync data in an app.
Note: CKSyncEngine relies on remote notifications in order to sync properly. Simulators cannot register for remote push notifications, so running this sample on a real device or Mac is required for this app to properly sync.
CKContainer in SyncedDatabase.swift with your new iCloud container identifier.CKSyncEngine integration is contained in SyncedDatabase.swift.SyncedDatabase, which syncs a local store with the server.This project includes a few basic tests for CKSyncEngine integration in SyncTests.swift. This shows one possible way to test your CloudKit sync code by simulating multiple devices syncing back and forth. The test suite only exercises a few basic scenarios, and there are many more complex scenarios to test in your own application.
CKSyncEngine.CKSyncEngine.Swift
100.0%
This project demonstrates using CKSyncEngine to sync data in an app.
Note: CKSyncEngine relies on remote notifications in order to sync properly. Simulators cannot register for remote push notifications, so running this sample on a real device or Mac is required for this app to properly sync.
CKContainer in SyncedDatabase.swift with your new iCloud container identifier.CKSyncEngine integration is contained in SyncedDatabase.swift.SyncedDatabase, which syncs a local store with the server.This project includes a few basic tests for CKSyncEngine integration in SyncTests.swift. This shows one possible way to test your CloudKit sync code by simulating multiple devices syncing back and forth. The test suite only exercises a few basic scenarios, and there are many more complex scenarios to test in your own application.
CKSyncEngine.CKSyncEngine.Swift
100.0%