Develop Windows 8-Add a privacy statement to an application

Source: Internet
Author: User

In the Win8 application submission rule, there is one:

4.1 your application must meet the following privacy requirements: 4.1.1 if your application supports connection, it must contain a privacy statement. If your application can transmit "Personal Information" of any user technically, you must maintain a privacy policy. You must provide access to your privacy policy on the "Description" page of your application and the application settings displayed in the "Settings" superbutton of windows. Application function declarations that enable your applications to be used online include internetclient, internetclientserver, and privatenetworkclientserver. Your privacy policy must inform the user of the personal information transmitted by your application and how to use, store, protect and disclose the information, it also describes the user's control over the use and sharing of his/her information and the way they access his/her information, and the privacy policy complies with applicable laws and regulations.

Therefore, the privacy statement must be included as long as the functions are online.

With reference to some of the information (such as: http://www.cnblogs.com/hebeiDGL/archive/2012/11/18/2775568.html), the realization of the privacy statement. Relatively simple. For details, see the source code:

Protected override void onwindowcreated (windowcreatedeventargs ARGs) {settingspane. getforcurrentview (). commandsrequested + = oncommandsrequested; base. onwindowcreated (ARGs );} # region private methods /// <summary> // Add the command item on the settings page /// </Summary> /// <Param name = "sender"> </Param >/// <Param name = "ARGs"> </param> private void oncommandsrequested (settingspane sender, settingspanecommandsrequestedeventargs ARGs) {// registers the callback function of the User-triggered command object, uicommandinvokedhandler handler = new uicommandinvokedhandler (onsettingscommand ); // create the "privacy statement" command object settingscommand privacystatement = new settingscommand ("myappprivacystament", "privacy statement", Handler); // Add the seetingscommand object (privacy statement) to settingspane) args. request. applicationcommands. add (privacystatement );} /// <summary> // responds to the "privacy statement" command and jumps to the relevant page. // </Summary> /// <Param name = "command"> </Param> private async void onsettingscommand (iuicommand command) {settingscommand = (settingscommand) command; If (settingscommand. id. tostring () = "myappprivacystament") {URI privacypageuri = new uri ("myprivacypageurl"); await launcher. launchiliasync (privacypageuri) ;}# endregion

At the same time, when submitting an application to the store, the "Additional Terms" in the app store also requires the page URL of the privacy statement.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.