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".
Can Somebody give me the exact code to solve this problem.
In your base page, (or individual page if you want it only on one), you can define the settings like this:
SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested;
private void SettingsCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
//use "new Guid()" instead of string "privacy" if you're experiencing an exception
var privacyStatement = new SettingsCommand("privacy", "Privacy Statement",
async x => await Launcher.LaunchUriAsync(new Uri("http://some-url.com")));
args.Request.ApplicationCommands.Clear();
args.Request.ApplicationCommands.Add(privacyStatement);
}
Obviously in this example, we had the privacy policy link to an external page, however you can modify the code to open up a separate page within the app if you want.
it looks like you have not included a privacy policy with your application. This is a requirement in the windows store Check this link out for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With