Launching the Location Settings App using URI Scheme in Windows Phone 8

Below is a sample code snippet demonstrating on how to launch the Location Settings App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#.

Launching the Location Settings App using URI Scheme in Windows Phone 8

// Function open the Location Settings App using URI Scheme in Windows Phone 8 using C#.

private async System.Threading.Tasks.Task LaunchLocationSettingsApp()

{

await Launcher.LaunchUriAsync(new Uri("ms-settings-location:"));

}