79307555

Date: 2024-12-25 12:30:47
Score: 0.5
Natty:
Report link

I managed to fix this crash by wrapping the init body in a Task:

init() {
    Task {
        UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { (success, error) in }
    }
}

The app still crashes, but at a different point, so this is 'fixed'.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Niek