Keep .realm file upon app deletion


Hello guys,

Is there any way to keep the .realm file even though user deleted the app? What I am trying to achieve is, the user can continue the previous “session” even though the user has deleted the app.

If there is no .realm file has been initiated before, it will create a default one, and if there was, it will reuse the previous .realm file

Can someone guide me on this? Thanks :slight_smile:


Upon application delete, all data will be deleted.

However, you can sync the user data to the cloud, so the users data wont be lost (via realm cloud)
Or manage to sync the database to the users iCloud (via ice cream framework, with some limitations)
or you can build your own logic.