Skip to content

Local Realm changes not detected for entities with relationship which have Int primary keys #154

Open
@sskjames

Description

@sskjames

Hi,

SyncKit is just being integrated into our app which uses Realm as the local database.
Whenever changes are made to the local Realm, CloudKitSynchronizer is called to sync with the CloudKit private db.
However, I observed that only the "inserted" records are being synced.
When I "update" or "delete" a record locally it's not getting synced.

But I observed a different behaviour when I delete and re-install the app. Data from CloudKit is downloaded to the local Realm as expected.
Inserted, updated and deleted records are all getting synced as expected.

I couldn't recreate this problem with the Example app.

I'm not able to understand why I'm facing this behaviour. What is that I have missed or misconfigured? Can someone please throw some light on this?

Thanks in advance,
James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions