Fess
Fess

Reputation: 33

IDFA / ASIdentifierManager not found

if ( NSClassFromString(@"ASIdentifierManager"))
    {
        limitAdTracking = !ASIdentifierManager.sharedManager.advertisingTrackingEnabled;
        idfa = [ASIdentifierManager.sharedManager.advertisingIdentifier UUIDString];
        userDict[@"limit_ad_tracking"] = @(limitAdTracking);
    }

I have SDK. This sdk uses in different apps. But sometimes My SDK doesn`t get idfa. It can happen in one version of application (one time I get, one time - nope). What can happen?

Upvotes: 0

Views: 1097

Answers (1)

Rob Jones
Rob Jones

Reputation: 4985

If your App was not linked against AdSupport.framework, then NSClassFromString(@"ASIdentifierManager") will return nil and you'll never get the IDFA.

Is it possible you added/removed AdSupport.framework between the versions that exhibit different behavior?

Upvotes: 1

Related Questions