Privacy Statement Windows 8 Charm Settings
c#, windows-store-apps
Solution
In your base page, (or individual page if you want it only on one), you can define the settings like this:
SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested;
private void SettingsCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
//use "new Guid()" instead of string "privacy" if you're experiencing an exception
var privacyStatement = new SettingsCommand("privacy", "Privacy Statement",
async x => await Launcher.LaunchUriAsync(new Uri("http://some-url.com")));
args.Request.ApplicationCommands.Clear();
args.Request.ApplicationCommands.Add(privacyStatement);
}
Obviously in this example, we had the privacy policy link to an external page, however you can modify the code to open up a separate page within the app if you want.
Problem
My Windows Store App certification failed and the note given to me by the tester is that: "The app has declared access to network capabilities and no privacy statement was provided in the Windows Settings Charm". Can Somebody give me the exact code to solve this problem.