Hello!
I’m creating my own application and trying to figure out how to properly migrate my application to Realm and Device Sync.
I was faced with a difficult question for myself and did not find a clear answer in the documentation that would suit my needs.
My question: how to stop synchronizing user data with Atlas for an indefinite period of time? For example, the user may log out or his paid period may expire. Or it may not start yet, but user will start working with the application locally to begin with.
The documentation says that manually stopping synchronization for a long time is not worth it. How can I then solve this whole matter? Every time a user logs in and logs out, should I copy his data from one database to another? This seems like a bad idea. It could be GBs of data!
An application about notes. Notes can be recorded locally as much as the user wants without the Internet or payment. Then, when the user enables synchronization, the data should be synchronized with the second device.
Moreover, for flexible synchronization, the documentation says the following: if you did not synchronize this model, but recorded it, the server will cancel this recording on your device. How to deal with this? Losing user data is unacceptable.
I am using Realm. Kotlin. Android. And I plan to move to KMP.