RealmObject with RealmList<String>

Im trying to create a RealmList field for one of my RealmObjects in Java but i get an error in realm logs saying that “sync does not support collections of nullable primitives unless using the mixed type”. All the documentations show that that is doable.

public class UserModel extends RealmObject{
    @PrimaryKey
    String _id;
    RealmList<String> contacts;
}

What am i doing wrong?

Hi @Ibrahim_Abouelseoud, welcome to the community forum.

Did you find a solution for this?

What does your backend Realm schema look like?

1 Like