Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Privacy Statement Windows 8 Charm Settings [closed]

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.

like image 911
user1512186 Avatar asked Oct 24 '12 18:10

user1512186


2 Answers

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.

like image 158
Mike Richards Avatar answered Nov 03 '22 01:11

Mike Richards


it looks like you have not included a privacy policy with your application. This is a requirement in the windows store Check this link out for more information.

like image 30
Micah Armantrout Avatar answered Nov 03 '22 03:11

Micah Armantrout