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.