Adding Privacy Setting to Charm Windows 8 JavaScript Applications

Problem
Have your Windows 8 app certification ever failed just because of privacy-related requirements? While certification process Have you ever got a message stating that “The app has declared access to network capabilities and no privacy statement was provided in the Windows Settings Charm.”? If the answer is in Yes, it means your app is not fulfilling the certification requirement 4.1: “Your app must comply with the following privacy-related requirements: Your app must have a privacy statement if it is network-capable, and your app must obtain opt-in or equivalent consent to share personal information”
for more detail check there 4.1 Your app must comply with the following privacy-related requirements

Solution
It is not so complex to solve this problem. In fact, You don’t need to worry about the lines of coding. you can solve this issue by writing only a few lines of code. First of all, you need to create a new HTML file including privacy statement and the second one is implementing/Adding this HTML file to default.js file.

Let’s see how can we accomplish task step by step.
Step 1: Create an HTML file stating your Privacy Policies.
charmsetting2

Step 2: Adding Privacy.html in default.js.
Charmsetting 3

Code to Implement :

default.js file will look like :

 

you are done with all steps. now check your code to very its running well or not. Look below, here I’ve posted a screenshot demo app.

Move your mouse at the right corner of the screen and click on setting. you’ll get as given picture
charmsetting4

click on “privacy policy” to see privacy policies.
charmsetting5

Download SourceCode
want to download the source code: ClickMe!

Happy Coding 🙂

8 thoughts on “Adding Privacy Setting to Charm Windows 8 JavaScript Applications”

  1. kukujaora says:

    how to add tow or more options about us and privacy …… etc

    1. Ravi Ranjan Kumar says:

      I am not getting your question. will you please elaborate or be specific to your question ?

  2. Marco says:

    Thank you, this helped me.
    It is important to note that also it is a requirement to have an URL with the privacy policy to be filled in the description page.

    1. Ravi Ranjan Kumar says:

      Thanks for your feedback. yes your point to be noted 🙂

  3. nishantjain94 says:

    hola…it worked out for me..ty very much..:)

    1. Ravi Ranjan Kumar says:

      Thanks for your feedback!

  4. magrao says:

    Thank you. Helped me a lot.

    1. Ravi Ranjan Kumar says:

      I appreciate your feedback.

Leave a Reply