Post not yet marked as solved
Is there any way to get a call back in iOS application with UNNotificationRequest, in offline mode, even if the app is in background or not running state?
Post not yet marked as solved
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.