Posts

Post not yet marked as solved
0 Replies
229 Views
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.
Posted Last updated
.