Simple Consent

Handle consent using AATKit simple consent

Introduction

circle-info

Nowadays, using a Simple Consent management is no longer recommended. Please consider using an industry standard consent management such as the IAB Transparency & Consent Frameworkarrow-up-right and connecting it via Managed or Vendor Consent.

To set if the user has given or withheld consent for the collection and use of personal data (used for non-IAB partners), use the AATSimpleConsentarrow-up-right default initializer and pass any value of the NonIABConsentarrow-up-right enum

  • .obtained if the user has given consent.

  • .withheld if the user has declined.

  • .unknown if the user has not set a preference.

If AATSimpleConsent is used, AATKit will automatically read the IAB consent string stored (by third-party CMP) in NSUserDefaults (if available) and respect the settings for Gravite.

Usage

func configureAATKit() {
    let configuration = AATConfiguration()
    ...
    let consent = AATSimpleConsent(nonIABConsent: .obtained)
    configuration.consent = consent
    ...
    AATSDK.initAATKit(with: configuration)
}

Last updated