I read on Realm Sync documentation that realms should be opened asynchronously on the very first app open and otherwise opened synchronously. When I implemented this, no data populated to the cloud whenever realms were opened synchronously, although the changes happened on device just fine. What I’m thinking now is:
- open realm synchronously and store it in a variable, say
- start loading data, etc from the realm
- start opening the realm asynchronously and when it opens, set
dbequal to this new realm instance
Am I thinking about sync vs async realms correctly? Is there a better pattern to handle this case?