microsoft / microsoft/WindowsAppSDK
Notifications are not sent if app is launched with admin privileges (Issue on WinAppSDK 1.2+)
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
Notifications are no longer sent when an application is started with admin privileges.
Based on testing, this is working in v1.1.4 but broken in v1.2+ (including the latest stable version, version, 1.3.230331000).
### Steps to reproduce the bug
1. Use Template Studio to create a new Win UI 3 project in C# with Windows App SDK v1.2.0 or above
2. Add notification support when creating the template app
3. Build and run the app, and observe that the notification is sent on launch. Then clear all notifications.
4. Relaunch the app, from the start menu, but launch with admin privileges (search app name on start menu -> right click -> Run as administrator). (Alternatively, modify app and package manifest files, so that app requires admin privileges on launch to start)
5. Observe, that the notification is no longer sent on launch.
Repeat with Windows App SDK v1.1.4 and observe that the notification is still sent when launched with admin priveleges.
### Expected behavior
App should be able to send notifications to the user regardless of whether it was started with administrator privileges.
### Screenshots
_No response_
### NuGet package version
Windows App SDK 1.3.0: 1.3.230331000
### 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 with a packaged C# WinUI 3 project created through Template Studio, using Windows App SDK 1.2 or later and notification support. Compare launch behavior with and without administrator privileges, and with version 1.1.4. Done means notifications are sent on launch in both privilege modes for the affected versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100