Launch the ATT consent prompt
To gather a device’s ID for Advertisers (IDFA) on devices running iOS 14.5 and later, you need to display an App Tracking Transparency consent prompt. This prompt allows the user to set their tracking preference and either grant or deny access to their device’s IDFA. All users are opted-out of tracking by default and must grant access to their device's IDFA.
To get consent from your users, you need to do the following:
- Use a pre-permission prompt - Optional, but highly recommended as this improves user opt-in rates.
- Implement the ATT consent prompt - Required for iOS 14.5 and later.
You need to get consent from users only if the device’s ATT status is 0
("Not Determined"). For more information about consent status, see Receive consent status in raw data exports.
Use a pre-permission prompt
A pre-permission prompt gives your users context around why they will see the ATT consent prompt and encourages them to opt-in. Setting up a pre-permission prompt can help your app pass review and optimize your user opt-in rates.
Before you ask for users' consent, read this guide to learn about best practices for designing a prompt that encourages an opt-in.
Implement the ATT consent prompt
All users must opt-in in order for you to be able to gather their IDFA. This includes existing users for whom you already have this information recorded. Adjust supports the following approaches to implementing the ATT pop-up:
- Launch the ATT pop-up and then initialize the SDK - Call the SDK wrapper function to display the ATT pop-up before initializing the Adjust SDK.
- Initialize the SDK and then launch the ATT pop-up - Initialize the Adjust SDK before calling the SDK wrapper function to display the ATT pop-up.