locked
Privacy policy in charms or in page? - Information about Privacy Policy

    Question

  • I'm preparing my app to go to the Store, but I found a problem. I see that I need a Privacy policy, but I don't know if it's okay just to have it in the app on a page, or is it only in the charms that it is allowed?

    Also, I don't really know what to write about the Privacy Policy. What is provided?

    If I'm going to have the Privacy Policy in the charms, would I look to know how. Is it in the default.html? What should I write and where?

    Thursday, March 28, 2013 9:44 AM

Answers

  • The Privacy Policy is required if your App has Internet capabilities. You should link it on the Settings Charm.

    Each Policy should be tailored according to your app but you can use some examples as guidelines:

    To add an option to the Settings Charm, add on your default.js within the "activated" handler:

    WinJS.Application.onsettings = function (e) {
        e.detail.applicationcommands = { "privacyPolicy": { title: "Privacy Policy", href: "/pages/privacy/privacy.html" } };
    //the href points to the html of your policy inside the app
        WinJS.UI.SettingsFlyout.populateSettings(e);
    };

    Your privacy.html file could be something like:

    <!DOCTYPE HTML>
    <html>
    <head>
        <title>Settings Flyout</title>
    <link href="//Microsoft.WinJS.1.0/css/ui-light.css" rel="stylesheet" />
        <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
        <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
    
        <link href="privacy.css" rel="stylesheet" />
        <script src="privacy.js"></script>
    </head>
    <body>
        <!-- BEGINSETTINGSFLYOUT -->
        <div data-win-control="WinJS.UI.SettingsFlyout"
           " id="privacyPolicy"
            data-win-options="{settingsCommandId:'privacyPolicy', width:'narrow'}">
     
            <div class="win-ui-dark win-header">
                <button type="button" onclick="WinJS.UI.SettingsFlyout.show()" class="win-backbutton"></button>
                <div class="win-label">Privacy Policy</div>
            </div>
            <div class="win-content">
                <p>Privacy html text</p>
            </div>
        </div>
        <!-- ENDSETTINGSFLYOUT -->
    </body>
    </html>
    Remember that the Store will ask you for a public (hosted somewhere) link to the same policy too.


    • Marked as answer by Potices Friday, March 29, 2013 8:16 AM
    Thursday, March 28, 2013 5:34 PM