batoulapps / adhan-swift

High precision Islamic prayer time library for Swift
MIT License
182 stars 42 forks source link

@sabrefm1 you will need to create a different UNNotificationRequest for each prayer notification you want. #86

Closed sabrefm1 closed 1 year ago

sabrefm1 commented 1 year ago
          @sabrefm1 you will need to create a different UNNotificationRequest for each prayer notification you want.

Originally posted by @z3bi in https://github.com/batoulapps/adhan-swift/issues/85#issuecomment-1500909774

Hi Sorry for referencing this again. There is just one issue that is holding me back. Once the time has past the trigger time I get a crash: 'time interval must be greater than 0'

How do I check for less than zero. i.e. a negative value, a date that hasn't occurred yet

sabrefm1 commented 1 year ago

I will close this, as I moved forward to using UNCalendarNotificationTrigger instead of Time Based Trigger