<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "watchOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafetyKit",
  "identifier" : "/documentation/SafetyKit/SACrashDetectionDelegate/crashDetectionManager(_:didDetect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SafetyKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SACrashDetectionDelegate(im)crashDetectionManager:didDetectEvent:"
  },
  "title" : "crashDetectionManager(_:didDetect:)"
}
-->

# crashDetectionManager(_:didDetect:)

Receive and process a Crash Detection event.

```
optional func crashDetectionManager(_ crashDetectionManager: SACrashDetectionManager, didDetect event: SACrashDetectionEvent)
```

## Parameters

`crashDetectionManager`

The Crash Detection manager that detected the event.

`event`

The Crash Detection event.

## Discussion

To receive Crash Detection events, create a new [`SACrashDetectionManager`](/documentation/SafetyKit/SACrashDetectionManager) instance and set its delegate early in the app life cycle, such as <doc://com.apple.documentation/documentation/UIKit/UIApplicationDelegate/applicationDidFinishLaunching(_:)>.

> Important:
> Use the iOS Simulator to test Crash Detection events and the background functionality of your app.

Following a Crash Detection event, the system launches the app in the background. When the app launches, it performs critical tasks related to the Crash Detection event, such as placing a network request or scheduling a local notification. If the system generates multiple Crash Detection events while the app isn’t running, it reports the most recent event on the next app launch. The system may report the same Crash Detection event across different launches of your app, so always check [`date`](/documentation/SafetyKit/SACrashDetectionEvent/date) before processing it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)