microsoft / microsoft/WindowsAppSDK

Exception when launching appsfeatures-app settings uri with LaunchUriAsync

Open
#4,460 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

UWP Gap
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

Describe the bug

I need to launch the settings app to the settings of my app. But I got exceptions and nothing was launched.
The uri is documented here.

Steps to reproduce the bug
  1. Use this code in App.OnLaunch
    winrt::Windows::System::LauncherOptions options;
    auto name = winrt::Windows::ApplicationModel::Package::Current().Id().FamilyName();
    options.TargetApplicationPackageFamilyName(name);
    winrt::Windows::System::Launcher::LaunchUriAsync(winrt::Windows::Foundation::Uri{L"ms-settings:appsfeatures-app"}, options);
Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from App.OnLaunch using the provided LaunchUriAsync snippet in a packaged Windows App SDK 1.5.3 app on Windows 11 22H2. Inspect the exception and URI-launch behavior; done means the appsfeatures-app settings URI opens the app's settings without an exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.