Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Created January 31, 2019 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/56b51da2f2a6bc329d8b6c48b2e7b875 to your computer and use it in GitHub Desktop.
Save MartinZikmund/56b51da2f2a6bc329d8b6c48b2e7b875 to your computer and use it in GitHub Desktop.
//open app settings to allow users to give us permission
await Launcher.LaunchUriAsync(new Uri("ms-settings:appsfeatures-app"));
//confirmation dialog to retry
var confirmationDialog = new MessageDialog($"Please give this app the {library} permission " +
"in the Settings app which has now opened.");
confirmationDialog.Commands.Add(okCommand);
await confirmationDialog.ShowAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment