Uploading and Downloading Realm from a cloud database
So my use case is that I want to upload a user's realm, used as the database for a chat app to a cloud database and download it later for use as the default realm for a user whenever he/she switches log In device so he doesn't miss his messages...I.e Whenever user logs into app,users last realm(user.realm) is downloaded from a cloud store(if available) and used as the default realm,else create a new realm using(user.realm)....How can I achieve this? Thanks...
Personally I would recommend against this approach because migrations will give you a massive headache, I'd just store a JSON on the server side and then recreate the Realm based on that.
@Zhuinden
I agree with on migration issue. It would cause a headache, but regarding his use case, it seems to be a valid option for now.
Cool..