Tutorials for web designers and developers
Tutorials for Developers_
Close this search box.
Hafiz Faraz Mukhtar

Hafiz Faraz Mukhtar

Hafiz Faraz Mukhtar is an expert Web Developer, SEO specialist, and Graphic Designer. Hafiz Faraz is an expert in WordPress design and development. Hire on Upwork | Hire on Fiverr

Hey you have developed a great app that uses internet. Right? Now see, you need to set privacy policy windows 8 app for that internet usage in your app. If you don’t do this then your app will never get through Windows App Store. Fortunately, somebody already made your work a lot easier but we will get into that later. First, lets just see how we can do this:

How to access privacy policy in your app?

While your app is running, press ‘Windows Key’+ C and goto settings. You will see available options(if applicable).

Lets do it now! 

1. Open your app and goto App.xaml.cs

2. Scroll to end, before second-last braces enter following code.

#region Privacy & Policy

        private void DisplayPrivacyPolicy(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
            SettingsCommand privacyPolicyCommand = new SettingsCommand("privacyPolicy", "Privacy Policy", (uiCommand) => { LaunchPrivacyPolicyUrl(); });

        async void LaunchPrivacyPolicyUrl()
        {   // URL below is the URL of your privacy policy, Replace it with yours.
            Uri privacyPolicyUrl = new Uri("http://myapppolicy.com/app/sample-policy");
            var result = await Windows.System.Launcher.LaunchUriAsync(privacyPolicyUrl);


But you don’t know how to write privacy policy. Right? Here is what you need to check.

Follow Following link for Privacy & policy details:

Iris Blog


Go to following link for generating privacy & policy page:
Windows Store App Privacy Policy generator

After the privacy & policy page has been generated and the designated code has been added in the application
Go to Step 2 above and add the link of your privacy policy.
Also, mention about privacy & policy charm in the the testers notes while uploading on store and make sure you check internet capabilities in your app manifest file(if app is using internet).

Download Complete Code 

Here is how sample privacy policy of my app looks like.

6 Responses

  1. SettingsPane.GetForCurrentView().CommandsRequested += DisplayPrivacyPolicy;

    is missing !!!!!!!!! now its working

  2. SettingsPane.GetForCurrentView().CommandsRequested += DisplayPrivacyPolicy;

    is missing !!!!!!!!! now its working

Leave a Reply

Your email address will not be published. Required fields are marked *