Hello developers,
I want implement akavache this way:
public App()
{
InitializeComponent();
BlobCache.ApplicationName = "AkavacheExperiment";
//MainPage = new Login();
}
protected async override void OnStart()
{
// Handle when your app starts
try
{
var login = await BlobCache.Secure.GetLoginAsync("login");
MainPage = new MainPage();
}
catch (KeyNotFoundException)
{
MainPage = new Login();
}
}
And when execute the app, throw this exception and I do not know why.
System.NullReferenceException: Object reference not set to an instance of an object.
How to do it correctly ??
Regards