Error: cannot get schema in kotlin to match device sync

Hi, I believe the issue is coming from the difference between item and items.

In the backend you have a schema on a collection called items but it has a "title": "item" which means that it will correlate to a Realm class named “item” not “items”.

Therefore, you should have 2 options:

  1. Change the title field in the schema page to be “items”
  2. Use “item” as the name of your realm object

Most of the errors in your application are:

ending session with error: non-breaking schema change: adding schema for Realm table "items", schema changes from clients are restricted when developer mode is disabled (ProtocolErrorCode=225)

This is the error you get when the backend has the schema as “item” but you are passing it a schema with the title of “items”

I see you tried using a realm object that has a title of “item” but I cant easily find in the logs what error you are getting when using that since all of the errors I have found are the one above.

Either way, I would suggest either:

  1. Using “item” and report back if/what the error is when doing that (I would expect that to work)
  2. Update the backend schema to just be “items” and deploy it as a breaking change (you are in development so there shouldn’t be an issue)
  3. Turn on developer mode which will just create the schema on the backend exactly as you are using it in Realm

Best,
Tyler