How to mix Sync Realm and total offline DB

Hi, i have a Xamarin Forms app.
This project have two distinct Realm project’s dependency.
One use Sync to user data, other only access offline db send with app.
Both are distinct separate c# projetcs, generating separated DLLs and referenced by Forms app.
But realms is trying to load schemes from second app that is offline to server.

Other thing is i using nuget for Realm 10.5.0 and in server log appears 10.4.1,

I turn off development mode.

Error:

Ending session with error: additive schema change: adding schema for Realm table “Dictionar”, additive changes from clients are restricted when developer mode is disabled (ProtocolErrorCode=225)

Logs:

[ “Session was active for: 1s” ]

Partition:

60e602e29a974fd7af6e1121

Session Metrics:

{ “uploads”: 1, “downloads”: 1 }

Remote IP Address:

xxx

SDK:

Realm .NET v10.4.1

Platform Version:

Microsoft Windows

Per the docs:

To define the schema, you can specify the ObjectClasses property on the RealmConfiguration. If you omit this property, then all classes that inherit from RealmObject or EmbeddedObject are added to the schema automatically.

If you want your local and synced Realms to have different schema, then define ObjectClasses on their configuration objects.

Regarding using SDK 10.5.0, yet the logs showing 10.4.1, it’s likely because you only updated to 10.5.0 in you shared library, but didn’t update Realm in your application project.

1 Like

Thanks @nirinchev , your tip solve this problem and solve a Git issue https://github.com/realm/realm-dotnet/issues/2619 .

I can’t locate any reference to 10.4.1 all projects updated to 10.5.0

image

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.