In my NET8
MAUI
, I’m using the plugin Plugin.LocalNotification. I set a notification to be repeated daily with this code:
INotificationService _notificationService;
var notifyDateTime =
DateTime.Parse($"{DateTime.Now.ToShortDateString()} 08:00:00");
var notification = new NotificationRequest
{
NotificationId = 100,
Title = AppResources.NotificationsTitle,
Description = AppResources.NotificationDescription,
CategoryType = NotificationCategoryType.Status,
Schedule =
{
NotifyTime = notifyDateTime,
RepeatType = NotificationRepeat.Daily
}
};
await _notificationService.Show(notification);
The notification is fired once and then nothing. I thought the notification would stay there until the cancellation and fired daily. Do I have to resend the notification again every time it is fired?