microsoft / microsoft/WindowsAppSDK
Exception when launching appsfeatures-app settings uri with LaunchUriAsync
Nobody has claimed this yet.
- 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
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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