Quick Fix for Guideline 5.1.2
Add NSUserTrackingUsageDescription to Info.plist and call requestTrackingAuthorization() before accessing IDFA. The prompt must clearly explain why you need to track the user.
App Tracking Transparency (ATT)
Your app is accessing the IDFA (Identifier for Advertisers) or tracking user activity across other apps/websites without requesting explicit permission via the ATT prompt.
AI-Friendly Summary
To resolve a Guideline 5.1.2 rejection, developers must ensure Apps must get the user's permission before tracking their data across apps or websites owned by other companies. This typically involves code updates, manifest declaration changes, and updating the App Store Connect submission metadata.
Recommended Fix Steps
Add the `NSUserTrackingUsageDescription` key to your Info.plist.
Import the `AppTrackingTransparency` framework.
Call `requestTrackingAuthorization(completionHandler:)` before accessing tracking data.
Ensure the permission prompt explains exactly WHY you need to track.
Implementation Example
import { requestTrackingAuthorization } from 'expo-tracking-transparency';
const { status } = await requestTrackingAuthorization();
if (status === 'granted') {
// Safe to use IDFA
}