Contents

trackingAuthorizationStatus

A value that indicates the status of the app’s tracking authorization.

Declaration

class var trackingAuthorizationStatus: ATTrackingManager.AuthorizationStatus { get }

Discussion

Check this property to determine whether your app has permission to access app-related data it can use to track a person or device.

If the status is ATTrackingManager.AuthorizationStatus.notDetermined, call one of the tracking-request methods to present the tracking-authorization prompt and ask the person for permission:

This property returns ATTrackingManager.AuthorizationStatus.restricted when the system restricts tracking for the device, regardless of whether your app has presented the prompt.

See Also

Authorization status and results