Post

Replies

Boosts

Views

Activity

Reply to DateComponents configuration for x months
@Claude31 thanks for your help. I think I'll have the app check for pending notifications, and make sure the next one is always scheduled. The user won't benefit from having multiple notifications queued for the same event - it only matters that the next scheduled notification appears when it should. The code will be a bit more work, but it will get the job done. Thanks again.
Aug ’21
Reply to DateComponents configuration for x months
Hi @Claude31, here is where I read the definition of DateComponents.month. [https://developer.apple.com/documentation/foundation/datecomponents/1780256-month] If I remove the month component, how would I configure for schedules that repeat on an unusual number of months? For example, a notification that repeats every 13 months - I'm not sure how to do that. Should it be DateComponents.day = 386 ?
Aug ’21