I am getting the InvalidOperationException: ‘couldn’t determine a writable folder where to store realm file’.
I am creating a Unity game, using the Unity SDK for Realm, where I am building it for Android and IOS. The error occurs building it onto my Samsung S8, whilst the Unity editor works perfectly fine, saving into locallow, and IOS I have yet to test.
I have tried multiple combinations of the functions
Realm realm = Realm.GetInstance(), with and without parameters, along with the addition of a
RealmConfiguration, also with and without taking parameters.
RealmConfiguration.DefaultConfiguration.DatabasePath, leaving it blank and various other paths I have tried have all failed to work, all giving the same error.
I am finding it quite weird how this error seems to be nearly non existent on the internet other than two github issues which haven’t helped at all. Does anyone have any suggestions of what could be causing this?