Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Setting To Charm Windows 8 app

My Windows Store App certification failed and the note given to me by the tester is that:

The app has declared access to network capabilities and no privacy statement was provided in the Windows Settings Charm.

Does anyone have any ideas on how to solve this problem?

I would appreciate if any solutions were Javascript based.

like image 446
Muhammad Waqas Khan Abbasi Avatar asked Jun 10 '26 05:06

Muhammad Waqas Khan Abbasi


1 Answers

The samples that MS provide suck but I have made a simple solution at http://eion.robbmob.com/blog/2013/04/02/win8-js-privacy-policy-settings/

Edit: Attaching code here :)

var settingsPane = Windows.UI.ApplicationSettings.SettingsPane.getForCurrentView();
function commandsRequested(eventArgs) {
    var applicationCommands = eventArgs.request.applicationCommands;
    var privacyCommand = new Windows.UI.ApplicationSettings.SettingsCommand('privacy', 'Privacy Policy', function() {
        window.open('www.link.to.your/privacy_policy.html');
    });
    applicationCommands.append(privacyCommand);
}
settingsPane.addEventListener("commandsrequested", commandsRequested);
like image 131
EionRobb Avatar answered Jun 13 '26 20:06

EionRobb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!