How to prevent the cache memory from being cleared when updating my app in xamarin

kevin david
161
Reputation points
Hello!
I need the cache memory of my application not to be deleted when updating it.
I need to retrieve session tokens. I used several methods like GetAccountsAsync. Since I use Microsoft authentication but when I update it returns null. As with the MonkeyCache tool, they work normally, but when I refresh the app, the token disappears.
In AppDelegate and MainActivity I have this
Barrel.ApplicationId = NSBundle.MainBundle.BundleIdentifier;
App class
accessToken = Barrel.Current.Get<string>("access_token");
//if (accounts.Count() > 0)
if (!string.IsNullOrEmpty(accessToken))
{
Helpers.Settings.IsLoged = true;
}