领域无法在不同设备之间同步数据

时间:2018-01-18 12:08:49

标签: amazon-web-services amazon-ec2 realm

以下是我的同步领域配置。对于每个设备,我安装的应用程序数据都没有与它们同步。我的领域对象服务器在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)

0 个答案:

没有答案