Saving user password in android not work

RoyaRoya USMember ✭✭

Recently, after updating xamarin forms and the related libraries, the application can not save the user credentials. I have noticed that it doesn't happen always, I personally tested it on five different cellphones with different android versions and all work correctly. But then, in the other cellphones, the users said that each time they closed the app from app manager, they need tologin again.
The library "Plugin.Settings.Abstractions" has been used for saving the settings. This is the piece of code for the "Remember me" section:

private static ISettings AppSettings
{
get { return CrossSettings.Current; }
}

public static int RememberLogin
{
get
{
return DecodeAESInt(AppSettings.GetValueOrDefault(RememberLoginKey, RememberLoginDefault.ToString()).ToString());
}
set
{
AppSettings.AddOrUpdateValue(RememberLoginKey, EncodeAES(value.ToString()));
}
}
I would be thankful if anyone could help me to solve this bug.

Posts

  • RoyaRoya USMember ✭✭

    I updated the Xam.Plugins.Settings and now it can save the password.

Sign In or Register to comment.