Skip to content

Best Practice Design for "Offline First" With Realm Sync (.net)? (Realm, RealmSyncApp, Configuration) #2672

Answered by papafe
dgerding asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dgerding

When using MongoDB Realm Sync you don't really need to worry about the connection status, as realm will work in the same way both when online and offline. When online realm will sync all the necessary changes in the background, but you don't need to do anything specific to make it work.

Regarding more specifically your questions:

  • You're correct that at least the first time the user need to have an internet connection and do a login. After the first login, you can open the realm using the user from App.CurrentUser.
  • You don't need to create a new Realm reference once the user has internet access. All the synchronisation happens automatically.
  • You can find methods to pause/resu…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dgerding
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants