I've implemented database in realm on Android an iOS. I'm hardly sure that they are the same but if I'm replacing file from iOS and getting Realm instance using this file I get RealmMigrationNeededException. Is there any way to compare schemas in realm files from Android and iOS? If I'm doing the same action with file from another Android device it works.
Edit:
After adding empty Migration:
public class Migration implements RealmMigration {
@Override
public long execute(Realm realm, long version) {
return version;
}
}
I get: "Primary key not defined for field 'id' in existing Realm file. Add @PrimaryKey." Both platforms have 'id' field implemented as primary key.