I am using Akavache standard approach on iOS (actually, it's .NET Standard project for Android/iOS), but the issue appears with iOS only.
I save some value during the app lifecycle:
await BlobCache.Secure.InsertObject("user", user);
And on the app new session this:
var user = await BlobCache.Secure.GetObject<UserModel>("user");
But the object is not available (with KeyNotFoundException
exception).
Recently I also was trying to call BlobCache.Secure.Flush().Wait()
right after the object saving, but there is still no effect.
The issue happens with iOS only. Android is fine. The issue happens with both Secure and UserAccount objects.
The data is not available even after "gentle" BlobCache.Shutdown().Wait()
on the application closing. So, have no idea even where to search the solution now.
Any thoughts why might cause this issue and how I can solve it?