ATTrackingManager error in iOS 15

If you’re running into an error where your Ad Tracking request manager isn’t showing up after you update to iOS 15, here’s what you do.

You probably have some code that looks similar to this:

    if (@available(iOS 14, *)) {
        [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {

}

This is Objective-C… sorry for the formatting.

If you had this code in didFinishLaunchingWithOptions, that’s the issue. You should move it to applicationDidBecomeActive instead. I have that whole code block of requesting this in it’s own method, so changing where it was called was pretty straightforward.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.