App Tracking Transparency
Request authorization to access app-related data that your app can use to track the person or the device.
Overview
Your app needs to use the App Tracking Transparency framework if it collects data about people and shares it with other companies to track them across apps and websites. The framework presents a tracking-authorization UI and reports the current authorization status.
Request authorization to access app-related data
To use the App Tracking Transparency framework:
Add the NSUserTrackingUsageDescription key to your app’s target properties in Xcode.
Call requestTrackingAuthorization(completionHandler:) to present the tracking-authorization request.
Check trackingAuthorizationStatus to determine the current authorization status; see ATTrackingManager.AuthorizationStatus for the possible values.
For more information about app tracking and privacy, see User Privacy and Data Use and App Privacy Details.
Topics
Essentials
Authorization requests
requestTrackingAuthorization(completionHandler:)requestTrackingAuthorization(preferExpandedInterface:additionalInformationAction:completionHandler:)NSUserTrackingMarkdownUsageDescription