---
title: "requestAuthorization(handler:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmfalldetectionmanager/requestauthorization(handler:)"
---

# requestAuthorization(handler:)

Requests authorization to receive notifications about fall detection events.

## Declaration

```swift
func requestAuthorization(handler: @escaping (CMAuthorizationStatus) -> Void)
```

## Parameters

- `handler`: A block that is called by the system after the user accepts or declines the authorization request. The system passes the following parameter:

## Discussion

Discussion As soon as the user authorizes fall detection, the system calls the delegate’s fallDetectionManager(_:didDetect:completionHandler:) method and passes the latest fall detection event.

## See Also

### Requesting Authorization

- [authorizationStatus](coremotion/cmfalldetectionmanager/authorizationstatus.md)
- [CMAuthorizationStatus](coremotion/cmauthorizationstatus.md)
