Adding a privacy policy to your Windows 8 application

One aspect of Windows 8 app development that I have seen a lot of developers get tripped up on has been the inclusion of a “privacy policy”. The certification requirements document explains why it is needed:

But to sum the article up, if you even have the “can access the internet” capability checked then you MUST have a privacy policy. I (incorrectly) thought that since I was just accessing a XML feed and not sending any data that I would be excluded from the requirement. But Microsoft have no idea what you may be sending in your GET/POST requests.

Examples of privacy policies

The first step is to write a privacy policy, however it is probably easier to just base yours off of someone else’s. Here is my current privacy policy

Here are links to a few other privacy policies:

The next hurdle is finding somewhere to host your privacy policy. You could use a free Windows Azure website account, post it onto your blog (like I have done), or perhaps put it onto skydrive/dropbox and make it public.


Once you have your privacy policy, the last step is to add it to the settings charm. The easiest way is to add it to the settings charm from App.xaml.cs, this way the privacy policy is available on every page of your application.

Below I have included the code snippet I use in my own code. First you add an event handler for when the commands are requested. Then you add your new privacy policy option to the settings screen. Finally you add logic for what happens when your new option is clicked (launch the web browser).


protected override void OnLaunched(LaunchActivatedEventArgs args)
// …

SettingsPane.GetForCurrentView().CommandsRequested += App_CommandsRequested;

void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
args.Request.ApplicationCommands.Add(new SettingsCommand(“privacypolicy”, “Privacy policy”, OpenPrivacyPolicy));

private async void OpenPrivacyPolicy(IUICommand command)
var uri = new Uri(“”);
await Launcher.LaunchUriAsync(uri);

I hope this helps simplify your app development!

By David Burela
Reblogged from my
Infragistics blog.

One thought on “Adding a privacy policy to your Windows 8 application

  1. Convinced that Lisa would be a great idea if you do, however if you only listen to talk radio then the standard system will be more chain stores
    or specialty stores like Jiffy Lube. Today, many repair shops and dealerships hire mechanics that
    specialize in auto repair. Placewell International Services Corporation – We are
    entertaining skilled applicants for pool service in brick nj positions in Sydney, Australia.
    When I make tight turns in my driveway, I can make the theoretical
    become a reality.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s