If you are creating and releasing apps for the Windows 8 marketplace that access the internet you will need to ensure that you have an appropriate privacy policy, here is mine. Your privacy policy will need to be submitted as part of app meta data, and additionally you will need to ensure that the app settings (Win key - C, then select settings) has a reference to your privacy policy, the following is probably the most succinct way to accomplish this:

In App.xampl.cs create the following methods:

/// Determines which settings was actuated
async void onSettingsCommand(IUICommand command)
{
    SettingsCommand settingsCommand = (SettingsCommand)command;

    //You can use a simple switch/if to deterine which settings was clicked.
    if (settingsCommand.Label == "Privacy")
    {
        var success = Launcher.LaunchUriAsync(new Uri("https://www.poppastring.com/PrivacyPolicy", UriKind.Absolute));
    }
}

// Use this to create the list of settings, this example is just for a privacy policy...
void onCommandsRequested(SettingsPane settingsPane, SettingsPaneCommandsRequestedEventArgs eventArgs)
{
    UICommandInvokedHandler handler = new UICommandInvokedHandler(onSettingsCommand);

    SettingsCommand generalCommand = new SettingsCommand("privacySettings", "Privacy", handler);

    //We create and add additional settings options here, this is just for privacy defined above.
    eventArgs.Request.ApplicationCommands.Add(generalCommand);

}

Override of the OnWindowCreate in App.xaml.cs ensures that your settings is always available from all locations in the app.

protected override void OnWindowCreated(WindowCreatedEventArgs args)
{
    base.OnWindowCreated(args);
    SettingsPane.GetForCurrentView().CommandsRequested += onCommandsRequested;
}

This should help you avoid at least one of your inevitable marketplace rejections.



Comment Section

Comments are closed.