Thursday, January 2, 2014

How to sovle problem "The app has declared access to network capabilities and no privacy statement was provided in the Windows Settings Charm."

Simplest way:

SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested;

private void SettingsCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
    var privacyStatement = new SettingsCommand("privacy", "Privacy Statement", x => Launcher.LaunchUriAsync(
            new Uri("http://some-url.com")));

    args.Request.ApplicationCommands.Clear();
    args.Request.ApplicationCommands.Add(privacyStatement);
}

Reference
http://stackoverflow.com/questions/13055381/privacy-statement-windows-8-charm-settings