Notifications Windowing WebView2
Notification Issues
| Symptom | Likely cause | Fix |
|---|---|---|
| Notification no-op | App is elevated | Run non-elevated; app notifications are unsupported for elevated apps |
| Click does not activate app | Manifest COM activation missing or GUID mismatch | Follow notification quickstart manifest registration |
| Closed-app click path fails | Startup reads args before registration or does not route activation | Register notification manager before reading activated args |
Windowing Issues
| Symptom | Likely cause | Fix |
|---|---|---|
Window.Current null | UWP pattern | Track windows explicitly |
AppWindow not found | HWND conversion missing/wrong window | Use WindowNative.GetWindowHandle and Win32Interop.GetWindowIdFromWindow |
| Custom title bar eats clicks | Drag regions not configured | Recheck title bar input region docs |
WebView2 Issues
| Symptom | Likely cause | Fix |
|---|---|---|
| Works on dev machine only | Runtime already installed locally | Choose Evergreen install path or fixed runtime distribution |
| Unexpected page loads | Missing navigation policy | Restrict origins in NavigationStarting |
| Tests only cover native shell | Web content untested | Add Playwright checks for complex web flows |