Question: I'm developing a client application in **Xamarin.Forms** (Android, iOS and Windows Phone) which will contact the server to get the user data. In this application i need to store the user settings like User Preferences, Server Url, UserName, authentication token . . . etc.

Can anyone suggest me a **standard** and **best** way to store the application user settings?

Thanks in advance.

Answer: 
Use [SettingsPlugin](https://github.com/jamesmontemagno/SettingsPlugin) to store the user settings as you required. This will help to access settings from shared code across all of your mobile apps.

The following code:

```
public static class Settings 
{

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

    //Setting Constants

    const string UserName = "username";
    private static readonly string UserNameDefault = string.Empty;

    public static string UserName
    {
        get { return AppSettings.GetValueOrDefault<string>(UserName, UserNameDefault); }
        set { AppSettings.AddOrUpdateValue<string>(UserName, value); }
    }
}

```
In my opinion will be SQLite, create table with user setting. SQLite is keep on phone like .txt file. You can also add more tables for other functionality.

You can always create profiles with setting and reload it.