requestAuthorization(completionHandler:)
Requests permission to access Crash Detection information.
Declaration
func requestAuthorization(completionHandler handler: @escaping @Sendable (SAAuthorizationStatus, (any Error)?) -> Void)func requestAuthorization() async throws -> SAAuthorizationStatusParameters
- handler:
The completion handler invoked with the status of the authorization request.
Discussion
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 is true.