Is there any .NetStandard based cross-platform storage implementation available (something like PCLStorage, but .NetStandard-based, to support also UWP) ?
@abra did you ever manage to find something? I'm looking for some storage package available for .netstandard too?
@abra Thanks for the reply. I was unable to find anything either. The best thing I could come up with was to use the Settings Plugin (Link Below) and use a custom class that will deserialize/serialize back and forth from json, storing the json string against a Settings Plugin property.
private static ISettings AppSettings => CrossSettings.Current;
public static string UserCookie
get => AppSettings.GetValueOrDefault(nameof(UserCookie), string.Empty);
set => AppSettings.AddOrUpdateValue(nameof(UserCookie), value);
public Cookie UserCookie
get => !string.IsNullOrEmpty(Settings.UserCookie) ? JsonConvert.DeserializeObject<Cookie>(Settings.UserCookie) : null;
var cookie = !string.IsNullOrEmpty(Settings.UserCookie) ? JsonConvert.DeserializeObject<Cookie>(Settings.UserCookie) : null;
if (cookie == value)
Settings.UserCookie = value != null ? JsonConvert.SerializeObject(value) : null;
public bool IsAuthenticated()
if (UserService.UserCookie != null)
UserService.UserCookie = null;
Not sure if the above will help your situation or give you any ideas or not though?
I forgot about this one. You might take a look, if you dont need the async methods.https://nuget.org/packages/Plugin.NetStandardStorage
I was looking actually for a solution for some generic storage (image, pdf, json,... files), not only for the settings.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies