Nothing helps until
extension UNUserNotificationCenter: @retroactive @unchecked Sendable {}
extension UNNotificationResponse: @retroactive @unchecked Sendable {}
...
@MainActor
public func userNotificationCenter(
_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse) async {
// Crash free
}
Thanks to https://stackoverflow.com/a/79670394/14538356
Topic:
App & System Services
SubTopic:
Notifications
Tags: