I am trying to set local notification with repeat on Mac Catalyst. It is triggering at the correct time but once triggered the notification keeps firing non-stop (only way to stop firing is to remove pending notification via code)
The code I'm using(some parts excluded for clarity):
NSDateComponents *dateComponents = [NSDateComponents new];
dateComponents.weekday = FRIDAY;
dateComponents.hour = 10;
dateComponents.minute = 30;
dateComponents.second = 0;
UNCalendarNotificationTrigger *trigger =[UNCalendarNotificationTrigger triggerWithDateMatchingComponents:dateComponents repeats:YES];
UNNotificationRequest *request = [UNNotificationRequest requestWithIdentifier:key content:content trigger:trigger];
[[UNUserNotificationCenter currentNotificationCenter] addNotificationRequest:request withCompletionHandler:nil];
This code is working correctly on iOS devices.