Class ConsentModule
Owns the user-privacy consent that must be resolved before any third-party SDK is initialized. Today that means iOS App Tracking Transparency (ATT). Always available — no define guard required.
public static class ConsentModule
- Inheritance
-
ConsentModule
- Inherited Members
Properties
- IsTrackingAuthorized
Whether the user permits tracking (IDFA access). Only meaningful once RequestATTrackingAsync() has completed.
trueon platforms where ATT does not apply.
Methods
- RequestATTrackingAsync()
Requests iOS ATT authorization. When the Facebook module is enabled, also forwards the outcome to the Meta Audience Network SDK, which cannot read the ATT status on its own. Await this before initializing any SDK that reads the IDFA (Firebase, AppLovin, AppsFlyer, Adjust…): unlike a fire-and-forget request it does not return until the user has answered, so those SDKs start up with the final tracking state instead of racing the prompt. Returns
truewhen tracking is authorized. Returnstruewithout prompting on non-iOS platforms and on iOS below 14.5, where ATT does not exist and tracking is permitted by default.