d7laungani / DLLocalNotifications

:speech_balloon: Easily create Local Notifications in swift - Wrapper of UserNotifications Framework
MIT License
214 stars 38 forks source link

if i can change interval to less than 10 seconds than notification not work on specific time #37

Open niravparmar231 opened 2 years ago

niravparmar231 commented 2 years ago

i want to fire notification between specific time but interval is 2/3 seconds not 10/15 seconds so i do following changes but it will not work , not fire notification on perfect start time time.

let scheduler = DLNotificationScheduler() scheduler.repeatsFromToDate(identifier: "First Notification", alertTitle: "Multiple Notifications", alertBody: "Progress", fromDate: Date(), toDate: Date().addingTimeInterval(300) , interval: 10, repeats: .none ) scheduler.scheduleAllNotifications()