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
}
Post
Replies
Boosts
Views
Activity
Hi,
I just ran into the same issue. However our app still crashed when the delegate method was empty and the user tapped on the notification on the Lock Screen while the app was in the foreground.
For us switching back to the old completion based delegate method solved the issue.