Home How to migrate local realm to synced realm
Reply: 0

How to migrate local realm to synced realm

user1047 Published in July 21, 2018, 1:50 pm

I have a project which used Realm as a local database. Now I want it to become online by using Realm Cloud. I got confused about how to migrate them. Start with RealmConfiguration and SyncConfiguration, after that is SchemaVersion too. My local configuration:

RealmConfiguration.Builder _config = new RealmConfiguration.Builder();
        _config.migration(new MyRealmMigration());
        RealmConfiguration config = _config.build();

This one i copied from PartialSync example app

SyncConfiguration configuration = new SyncConfiguration.Builder(
                REALM_BASE_URL + "/default")

I don't have any idea for this. But I don't see any tutorial related to my problem.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.309027 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO