After a little bit of digging we found a proper solution for the problem.
You need to mark the delegate method with @MainActor like:
@MainActor
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async {
// Do your stuff
}
Topic:
App & System Services
SubTopic:
Notifications
Tags: