microsoft / microsoft/WindowsAppSDK
GetActivatedEventArgs throws when activated by App/PushNotifications without calling Register
Open
@pmpurifoy is already working on this.
Since Sep 16, 2022.
area-Notifications
bug
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
Describe the bug
An app activated by App/PushNotifications but does not call App/PushNotificationManager.Default.Register, will throw on GetActivatedEventArgs.
Instead, the app shouldn't throw and should return null args.
Steps to reproduce the bug
- Build an unpackaged/packaged app with a dependency on the WinAppSDK.
- Follow the quickstart to enable app to receive Push/AppNotifications.
- Activate the app with either Push or AppNotification.
- Call GetActivatedEventArgs without Push/AppNotificationManager.Default.Register.
- App throws due to the wait event not being initialized.
Expected behavior
No response
Screenshots
No response
NuGet package version
No response
Packaging type
No response
Windows version
No response
IDE
No response
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.
Assessment
This issue has not been assessed yet.