Skip to content

What is the analogue to CKSyncEngine for public databases #6

Description

@avnerbarr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions