以下是我的同步领域配置。对于每个设备,我安装的应用程序数据都没有与它们同步。我的领域对象服务器在AWS ec2中
Realm.init(getApplicationContext());
SyncCredentials syncCredentials = SyncCredentials.usernamePassword("username","password",false);
SyncUser user = SyncUser.login(syncCredentials, serverUrl());
SyncConfiguration config = new SyncConfiguration.Builder(user, realmUrl()).name("auth").schemaVersion(schemaVersion)
.build();
realm.setDefaultConfiguration(config)