ios
ios copied to clipboard
addNotificationRequest() only repeats daily
From the looks of it, addNotificationRequest()
only allows repeating a notification daily. This means losing functionality to repeat weekly
, monthly
, yearly
, etc., which I'm sure a lot of apps depend on.
Looking at the code it looks like it shouldn't be too hard to extend the capabilities of addNotificationRequest()
to support the same parameter repeatInterval
by only adding the necessary flags in the date components.
I'd attempt this if I had time (which unfortunately I don't) and am ok with using the deprecated methods for now. If someone here would be able to add this functionality that would be great.
This feature is really important!
From what I've tested daily repeating doesn't even work properly through addNotificationRequest()
. Only works with scheduleLocalNotification()
at the moment. It seems to me the challenge is in abstracting the UNNotificationTrigger defintion.