Created
May 2, 2021 22:00
-
-
Save barrault01/3a8954e89277d6ebdd97076fac81cc9f to your computer and use it in GitHub Desktop.
ATTrackingManager request tracking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if #available(iOS 14, *) { | |
ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in | |
if status == .authorized { | |
//if authorized the IDFA is now available | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment