Initialize the SDK and launch the ATT pop-up

With the "Initialize, then Popup" approach, you can invoke the popup any time in the first session, rather than as soon as the user opens the app. We track the installs for new users or sessions for existing users once you initialize the SDK.

Since the Adjust SDK initially recorded the install without the IDFA, Adjust reruns the attribution for new users that have allowed tracking. If the attribution status is different from the initial attribution, the Adjust backend records an updated attribution.

Note:
If you are using Adjust's App-tracking authorization wrapperto launch the consent prompt and a user's ATT status changes, the SDK notifies the backend of the ATT status change immediately. But, if you call the requestTrackingAuthorization(completionHandler:) method on your own to launch the ATT prompt and a user's ATT status changes, there might be some delay in the SDK notifying our backend of the ATT status change.

Workflow

  1. The user opens the app for the first time after installing it or after after upgrading to iOS 14.5 or later.
  2. Your app initializes the Adjust SDK. The Adjust SDK sends the install/session information without the IDFA to the Adjust backend.
  3. (Optional, only for new users) Your app displays its onboarding screens.
  4. Your app displays a pre-permission prompt if you have set this up.
  5. Your app calls on the Adjust SDK’s consent prompt wrapper and displays the ATT consent pop-up.
  6. The user selects either “Allow” or “Ask App Not to Track”.

Based on the user's response, the Adjust SDK collects data.

  • If the user selected "Allow", the SDK sends install information to the backend without the IDFA. The IDFA will be available in all subsequent post-install events and sessions, unless the user opts-out later.
  • If the user selected "Ask App Not to Track", the SDK sends install information for new users and session information for existing users to the backend without the IDFA. The IDFA will be unavailable in all subsequent post-install events and sessions. This will not impact existing attribution data.

Customize prompt timing

If your app includes an onboarding process or a tutorial, you may want to delay the launch of the ATT prompt until after the user has completed it. The Adjust SDK enables you to delay the ATT prompt launch for up to 120 seconds to give your users time to complete the initial onboarding before informing you of their consent decision.

See the Custom prompt timing documentation for more information.