apple / apple/sample-cloudkit-sync-engine

What is the analogue to CKSyncEngine for public databases

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

Description

I modified this piece:

```
func initializeSyncEngine() {
var configuration = CKSyncEngine.Configuration(
database: Self.container.publicCloudDatabase, // <<<<<<<<<<<<<<<<<<<<< THIS
stateSerialization: self.appData.stateSerialization,
delegate: self
)
```
And hit the error:

```
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'CKSyncEngine cannot be used in the Public database'
*** First throw call stack:
```

So I read (quickly 😄 ) the documentation and noticed this tid-bit:

image

So, basically my question is , what is the alternative to `CKSyncEngine` providing the easiest way to sync a local database with the remote public iCloud?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the initializeSyncEngine function and the CKSyncEngine.Configuration setup shown in the issue, then consult Apple’s CloudKit documentation for public-database support. Identify a supported approach for syncing a local database with the public database; the work is done when that approach and its limitations are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
databases, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.