realm Print file location - Xamarin


First you need to implement Realm at the start of your class

using Realms;

Then to print the location to the console :

Console.WriteLine( RealmConfiguration.PathToRealm() );

Or if you're using DefaultConfiguration, you can use :

Console.WriteLine( RealmConfiguration.DefaultConfiguration.DatabasePath );

How to reach the file :

If you're running on IOS simulator :

You can copy the file path, go to Finder → Go → Go to Folder... (or ⌘+⇧+G)→ paste the path and hit Go.

But if you're running on Android emulator :

Open Android device Monitor (on visual studio → tools menu → Android → Android device Monitor ) (on Xamarin studio → Tools menu → Open Android device Monitor ) → File Explorer tab → follow the file path