Contents

subscriptionID

The subscription identifier for the associated database.

Declaration

var subscriptionID: CKSubscription.ID?

Discussion

By default, a sync engine attempts to discover an existing subscription for the synced database. If one isn’t found, the engine creates an internal CKDatabaseSubscription and uses that to receive notifications about remote record changes.

If you require the sync engine to use a specific database subscription, assign that subscription’s identifier to this property. Doing so enables your app to be backwards compatible if you’re migrating to CKSyncEngine from a custom CloudKit sync implementation.

The default value is nil.

See Also

Managing attributes