Skip to content
Francisco Dias edited this page Apr 28, 2023 · 3 revisions

Home

App Tracking Transparency is a feature introduced in iOS 14 that requires apps to get user permission before tracking their activity across other apps and websites for advertising or data collection purposes. When an app requests to track a user, a pop-up message appears on the screen asking for their consent. Users can choose to either allow or deny tracking for that app. This feature gives users more control over their personal data and privacy while using apps on their Apple devices.

By using this extension, you can request for app tracking permissions that are required to use other extension ie.: AdMob.

Functions

This module offers a collection of functions designed to address specific tasks and provide utilities for various purposes. Explore the available functions to make the most of the functionalities provided by this module.

Constants

This module includes a set of predefined constants that can be utilized for various purposes. Browse through the available constants to find values relevant to your needs and enhance the efficiency of your code.



Back To Top

AppTrackingTransparency_available

Checks whether or not the App Tracking Transparency feature is available. This feature was introduced with iOS 14, meaning iOS versions prior to v14 will return false, otherwise true is returned.


Syntax:

AppTrackingTransparency_available()

Returns:

boolean




Back To Top

AppTrackingTransparency_request

The function is a one-time request to authorize or deny access to app-related data that can be used for tracking the user or the device. The system remembers the user’s choice and doesn’t prompt again unless a user uninstalls and then reinstalls the app on the device.

This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Social Async Event.


Syntax:

AppTrackingTransparency_request()

Returns:

undefined


Triggers:

Social Async Event

Triggered once the user has responded to the authorization prompt, you can now check the authorization status using AppTrackingTransparency_status.

Key Type Description
type string The value "AppTrackingTransparency"



Back To Top

AppTrackingTransparency_status

This function returns the current authorization status for your application.


Syntax:

AppTrackingTransparency_status()

Returns:

AuthorizationStatus




Back To Top

AuthorizationStatus

These constants are the status values for app tracking authorization.

These constants are referenced by the following functions:


Member Description
AppTrackingTransparency_NotDetermined The value that returns when the app can’t determine the user’s authorization status for access to app-related data for tracking the user or the device.
AppTrackingTransparency_Authorized The value that returns if the user authorizes access to app-related data for tracking the user or the device.
AppTrackingTransparency_Denied The value that returns if the user denies authorization to access app-related data for tracking the user or the device.
AppTrackingTransparency_Restricted The value that returns if authorization to access app-related data for tracking the user or the device has a restricted status.