microsoft / microsoft/WindowsAppSDK

Schedule notification Id is empty while getting notification from GetScheduledToastNotifications method

Open
#1,140 0 comments 0 reactions 1 assignee Claimed by @hulumane View on GitHub
good first issue
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

**Describe the bug**
I have set `Id` for Schedule notification when creating toast notification. But, Schedule notification Id is empty while getting notification from `GetScheduledToastNotifications` method and `ScheduledToastNotificationShowing` event in Winui_desktop project.

**Steps to reproduce the bug**
1. Run the attached sample and click reminder button in current application.
2. Snooze reminder with 15 minutes.
3. Put a break point on `Notification_Click` method.
4. Then, once again click reminder button in current application.
5. Check Item Id value in foreach loop. Notification Id will be empty.

**Expected behavior**
Need to maintain same notification Id to check and ignore snoozed reminders(notifications).

**Screenshots**
![image](https://user-images.githubusercontent.com/61832185/125958567-9fc2ef32-38e6-4665-b95e-6d64c2d80c1b.png)

**Version Info**

NuGet package version:

[WinUI 3 - Project Reunion 0.8 Preview: 0.8.0-preview]
[WinUIToastNotifier_Desktop.zip](https://github.com/microsoft/microsoft-ui-xaml/files/6831141/WinUIToastNotifier_Desktop.zip)

Windows app type:
| UWP | Win32 |
| :--------------- | :--------------- |
| Yes| Yes|

| Windows 10 version | Saw the problem? |
| :--------------------------------- | :-------------------- |
| Insider Build (xxxxx) | |
| October 2020 Update (19042) | |
| May 2020 Update (19041) | Yes |
| November 2019 Update (18363) | |
| May 2019 Update (18362) | |
| October 2018 Update (17763) | |
| April 2018 Update (17134) | |
| Fall Creators Update (16299) | |
| Creators Update (15063) | |

| Device form factor | Saw the problem? |
| :----------------- | :--------------- |
| Desktop | Yes|
| Xbox | |
| Surface Hub | |
| IoT | |

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.