<!--
{
  "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/SACrashDetectionManager/requestAuthorization(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SafetyKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SACrashDetectionManager(im)requestAuthorizationWithCompletionHandler:"
  },
  "title" : "requestAuthorization(completionHandler:)"
}
-->

# requestAuthorization(completionHandler:)

Requests permission to access Crash Detection information.

```
func requestAuthorization(completionHandler handler: @escaping @Sendable (SAAuthorizationStatus, (any Error)?) -> Void)
```

```
func requestAuthorization() async throws -> SAAuthorizationStatus
```

## Parameters

`handler`

The completion handler invoked with the status of the authorization request.

## Discussion

> Important:
> You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration:
> 
> ```swift
> func requestAuthorization() async throws -> SAAuthorizationStatus
> ```
> 
> For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/Swift/calling-objective-c-apis-asynchronously>.

This method requests a person to authorize your app to receive Crash Detection events. Before requesting authorization, verify that your app already has authorization by verifying that [`authorizationStatus`](/documentation/SafetyKit/SACrashDetectionManager/authorizationStatus) is <doc://com.apple.documentation/documentation/Swift/true>.

---

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)