Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
In this blog, we are going to learn about AppTrackingTransparency. AppTrackingTransparency is a framework introduced with iOS 14.5 and it is mandatory to implement it in your application if your application collects end-user data and shares it with third parties for tracking purposes. It replaced the previous Limit Ad Tracking. This framework limits the user’s unique id (IDFA) from sharing for ad tracking. Let’s first talk about all mentioned terms in detail for better understanding. The AppTrackingTransparency is applied to every app and device.
According to Apple,
The Advertising Identifier (IDFA) is a unique ID for each iOS device and is the only way to offer targeted ads. Users can choose to limit ad targeting on their iOS device. Apple Devices like Iphone, Ipad gets assigned a unique IDFA.
Apple introduced IDFA in 2012 as a replacement for UDID. IDFA is generally used by MMPs (Mobile Measurement Platform) for various purposes such as Ad Targeting, Ad fraud detection, etc. Below is an example of how IDFA looks like:
To view your device IDFA you can download My Device ID by AppsFlyer from App Store and launch the application. We are using a third-party application for viewing our own UDID is because apple doesn’t provide a way to view it in your device setting.
MMP is a platform that tracks, visualizes, and organizes mobile app data to provide marketing information to their partners. It provides SDK to their advertiser to integrate into a mobile app. With this SDK, advertisers can track multiple things. Some of them are:
LAT stands for Limit Ad Tracking. As the name suggests it allows you to opt-out from advertisement tracking. When LTA is enabled it changed the user IDFA into zeros (00000000-0000-0000-0000-000000000000). This means they won’t see specific ads targeted at them because, as far as networks see, the device has no identity. It was introduced in 2012. The LAT is set globally in settings.
To enable ATT in your application you need to follow the below-mentioned 2 steps.
Firstly, add two new lines to your Info.plist
Info.plist
Secondly, we need to request for user’s permission. As this new feature is only available with iOS14, we also need to wrap the code into a version check. Let’s first look at how it looks in AppDelegate. Run this block from didFinishLaunchingWithOptions:
AppDelegate
didFinishLaunchingWithOptions:
Finally, when you run your application you will get a prompt to allow permission.
You can also fetch device IDFA using this property of AdSupport framework. The advertisingIdentifier is an alphanumeric string that’s unique to each device, and which you only use for advertising. However, on devices running iOS 14.5 and later and iPadOS 14.5 and later, your app must request tracking authorization before it can get the advertising identifier. For more information on getting the advertising identifier, see AdSupport.
AdSupport
advertisingIdentifier
The advertising identifier returns either a unique UUID, or all zeros. It returns a unique UUID in the following cases:
The advertising identifier returns all zeros (00000000-0000-0000-0000-000000000000) in the following cases:
ATTrackingManager.AuthorizationStatus.denied
In conclusion, using the above code you can fetch device IDFA.
Thank you for reading this article. If you want to read more articles regarding iOS Development click here.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.