UserNotifications Framework not able to stop notification reminder on current day while rescheduling for next day with UNCalendarNotificationTrigger using hour & minute date components

What we required, to remind the task daily in the application, have the notification(s) repeat daily at the same time using hour, minutes components with UNCalendarNotificationTrigger, and once the task is done by the user the repeat notification for the current day should be stopped and notification(s) on next day must be repeated as expected on an hourly interval.

We used UNCalendarNotificationTrigger as following statements,

let fireDate = Calendar.current.dateComponents([.hour, .minute], from: trigger_date)

let trigger = UNCalendarNotificationTrigger(dateMatching: fireDate, repeats: true)

Note: Above scenario is working with deprecated UILocalNotification framework but not working UserNotifications framework.

Your help/comment will be appreciable.

UserNotifications Framework not able to stop notification reminder on current day while rescheduling for next day with UNCalendarNotificationTrigger using hour & minute date components
 
 
Q