With the introduction of iOS 14.5, the App Tracking Transparency (ATT) framework requires apps to request permission from users before accessing their IDFA (Identifier for Advertisers). This transparency measure is critical for enhancing user privacy, aligning with UniConsent’s consent management capabilities.
ATT works by requiring explicit user consent for tracking across apps and websites. This fits seamlessly with UniConsent’s CMP, ensuring compliance with privacy regulations like GDPR and CCPA. Here’s how to integrate ATT into your iOS app:
ATT Prompt Integration: Use AppTrackingTransparency to request tracking authorization from the user before collecting the IDFA.
CMP Synchronization: Ensure that the UniConsent CMP handles consent preferences in alignment with the ATT framework, especially when tracking permissions are denied. You can automate checks for consent when necessary.
This integration allows a smooth experience by respecting both ATT's tracking requirements and UniConsent’s consent management for legal compliance.
ATT requires an update to your info.plist
file, include the NSUserTrackingUsageDescription key to explain the purpose of tracking.
In your app, prompt the user to grant tracking permission using the ATT framework. This request should be made before displaying ads or using tracking technologies.
@available(iOS 14, *)
import AppTrackingTransparency
func requestTrackingPermission() {
ATTrackingManager.requestTrackingAuthorization { status in
// Handle the result
switch status {
case .authorized:
print("Tracking authorized")
case .denied, .notDetermined, .restricted:
print("Tracking not authorized")
@unknown default:
break
}
}
}
To ensure proper consent handling, follow the standard steps in the UniConsent SDK. This ensures compliance with UniConsent's legal consent requirements.
if #available(iOS 14, *) {
self.requestAppTrackingTransparencyPermission()
}
This approach ensures compliance with ATT and UniConsent’s CMP, resulting in comprehensive privacy management.
if let appSettings = NSURL(string: UIApplication.openSettingsURLString) {
UIApplication.shared.open(appSettings as URL, options: [:], completionHandler: nil)
}
This will forward the user to your specific app settings, where they can change the settings as desired.