Set up App Tracking Transparency
If you want to record the device's ID for Advertisers (IDFA), you must display a prompt to get your user's authorization. To do this, you need to include Apple's App Tracking Transparency (ATT) framework in your app. The Adjust SDK stores the user's authorization status and sends it to the Adjust backend with each request.
The Adjust SDK contains a wrapper around Apple's
requestTrackingAuthorizationWithCompletionHandler method. You can use this wrapper if you do not want to customize the ATT prompt.
The callback method triggers when your user responds to the consent dialog. This method sends the user's consent status code to the Adjust backend. You can define responses to each status code within the callback function.
You can retrieve a user's current authorization status at any time. Call the
getAppTrackingAuthorizationStatus method to return the authorization status code as an integer.
If you use a custom ATT prompt, you need to inform the Adjust SDK of changes to the user's authorization status. Call the
checkForNewAttStatus method to send the authorization status to the Adjust backend.