IDFA Consent in iOS 14

Starting iOS 14.5 access to IDFA requires user consent. You should request IDFA manually using AppTrackingTransparency framework and pass it to Apphud. Update Apphud SDK to 1.0.5 or higher.


Important Note

Don't forget to add Privacy - Tracking Usage Description (NSUserTrackingUsageDescription) to your app's Info.plist

Here is code snippet how you can request IDFA:


#if canImport(AppTrackingTransparency)
    import AppTrackingTransparency

func requestIDFA() {
    if #available(iOS 14.5, *) {
        ATTrackingManager.requestTrackingAuthorization { status in
            guard status == .authorized else {return}
            let idfa = ASIdentifierManager.shared().advertisingIdentifier.uuidString


On Flutter please use the following plugin:

and then use:
static Future<void> setAdvertisingIdentifier(String idfa) async

Advertising Identifier is required for use in attribution integrations: AppsFlyer, Branch, Facebook, Adjust, Tenjin.

Despite IDFA, filling correct App Store Privacy Information is also required. For more information, read here.