Realms.Exceptions.RealmException: Keychain returned unexpected status code: -25293
at Realms.NativeException.ThrowIfNecessary(Func`2 overrider)
at Realms.Sync.AppHandle.CreateApp(AppConfiguration config, Byte[] encryptionKey)
at Realms.Sync.App.Create(AppConfiguration config)
at Realms.Sync.App.Create(String appId)
I’m sorry, I meant what is the platform that you’re targeting (running the app on). Are you building a Xamarin.iOS project running it on a simulator/actual device, or are you running a .NET Core app, targeting your Mac?
Hm… I’m failing to reproduce it so far, but will keep trying. In the meantime, can you try setting MetadataPersistenceMode on the realm config to NotEncrypted:
var config = new AppConfiguration("realmmongoapp-ywehx")
{
MetadataPersistenceMode = MetadataPersistenceMode.NotEncrypted
};
var app = App.Create(config);
Thanks, now it’s ok, but I have this error on loginAsync:
var configApp = new AppConfiguration("realmmongoapp-ywehx")
{
MetadataPersistenceMode = MetadataPersistenceMode.NotEncrypted
};
var app = App.Create("realmmongoapp-ywehx");
var user = await app.LogInAsync(Credentials.Anonymous());
Realms.Sync.Exceptions.AppException: InvalidSession: authentication via ‘anon-user’ is unsupported
at Realms.Sync.App.LogInAsync(Credentials credentials)