You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ToastContentBuilder of the previous Microsoft.Toolkit.Uwp.Notifications API had the ability to schedule toast notifications for a date/time using ToastContentBuilder.Schedule.
The AppNotificationBuilder and AppNotificationManager APIs of Windows App SDK do not offer such an Scheduling API yet. This gap should be closed.
Please also implement all the accompanying functionality that UWP offers, for example the removing of a notification that has already been passed to Windows, e.g in UWP.:
var notifier = ToastNotificationManagerCompat.CreateToastNotifier();
var scheduled = notifier.GetScheduledToastNotifications();
foreach (var notification in scheduled)
notifier.RemoveFromSchedule(notification);
Without this functionality, even scheduled notifications make absolutely no sense, because if the user changes his appointment, you must first delete it from Windows and only then set a new one.
It is best to migrate everything to winappSDK that UWP also offers, then you really can't do anything wrong.
Because UWP.Notifications Nuget has been around since 2016-2022. in these 6 years we will probably have understood what we need and what we don't need from the notification functionality. To decide independently in WinAppSDK which notification functionalities are taken over by UWP.Notifications and which are not (like sceduling here) really makes absolutely no sense and only makes the acceptance of MAUI more difficult.
pc
EDIT
If someone needs scheduled notifications for MAUI, then you have to use UWP.Notifications Nuget (as of January 2025) and there is a workaround from @whiskhub to get the ID sent by Windows. However, we all hope that the WinAppSDK team will implement a complete migration from UWP.Notification to windowsAppSDK so that WinAppSDK can be used for local notification in MAUI (as is also planned by Microsoft)
The
ToastContentBuilder
of the previousMicrosoft.Toolkit.Uwp.Notifications
API had the ability to schedule toast notifications for a date/time using ToastContentBuilder.Schedule.The
AppNotificationBuilder
andAppNotificationManager
APIs of Windows App SDK do not offer such an Scheduling API yet. This gap should be closed.Also see discussions #5046, #3853.
The text was updated successfully, but these errors were encountered: