How to add App Tracking Transparency to your Expo app, in short
Install expo-tracking-transparency with npx expo install expo-tracking-transparency, add it to the plugins array in app.json with a userTrackingPermission message that says what the tracking is for, then call requestTrackingPermissionsAsync before your ad or attribution SDK starts. If the status comes back granted, initialize the SDK with tracking on. If it comes back anything else, run it without tracking or not at all.
App Tracking Transparency, usually shortened to ATT, is the iOS system prompt that asks "Allow this app to track your activity across other companies' apps and websites?" Since iOS 14.5, iPadOS 14.5 and tvOS 14.5, an app needs a yes to that prompt before it can track someone or read the device's advertising identifier. The Expo package wraps the native framework, so you get the real system prompt with one function call and no custom native code.
Do you even need the tracking prompt?
Plenty of indie apps add ATT because they assume every app needs it. It does not. Tracking has a narrow meaning on Apple platforms: linking user or device data from your app with data from other companies' apps, websites or offline properties for targeted ads or ad measurement, or sharing user or device data with a data broker. If none of that happens in your app, showing the prompt only adds friction and a scary-looking dialog on first launch.
| What your app does | Needs the ATT prompt? |
|---|---|
| Shows targeted ads based on data from other companies' apps and websites | Yes |
| Sends advertising IDs or email lists to an ad network for retargeting or lookalike audiences | Yes |
| Includes an SDK that combines your app's data with other developers' data for ad targeting or measurement, even if you never use that feature | Yes |
| Uses a third-party deep linking or deferred deep linking tool that builds a shared identity across companies for ads | Yes |
| Links data with third-party data only on the device, never sending it off in an identifiable way | No |
| Shares data with a data broker only for fraud detection, fraud prevention or security | No |
| Uses the identifier for vendor (IDFV) for analytics across your own apps | No, as long as it is not combined with other data to track people across other companies' apps |
The row that catches people is the SDK one. You are responsible for every SDK in your binary, including sign-in providers and anything running inside a web view that is part of your app's functionality. If an analytics or ad SDK you added repurposes data for advertising in other developers' apps, your app is tracking, whether or not you meant it to.
Step 1: Install the package and set your purpose string
Run npx expo install expo-tracking-transparency. Then add the config plugin to app.json, under expo.plugins, as an array with the package name and an options object containing userTrackingPermission, for example: "This identifier will be used to deliver personalized ads to you."
That one option sets NSUserTrackingUsageDescription in your iOS Info.plist, which is the line of text shown under the system prompt's title. If you leave it out, Expo writes a generic default: "Allow this app to collect app-related data that can be used for tracking you or your device." An app that asks for tracking with no NSUserTrackingUsageDescription at all gets rejected, so the plugin matters even if you are happy with the default wording.
- Say what you do with the data, in plain words: personalized ads, measuring which ads brought people to the app, or keeping ads relevant. Vague text like "to improve your experience" tells the user nothing.
- Keep it short. It sits under a system title the user reads first, so one sentence is enough.
- Plugin options are compiled into the binary. After you change userTrackingPermission, make a new development build or EAS build to see it. Expo Go cannot show your own purpose string.
To translate the message, keep userTrackingPermission at its default and put NSUserTrackingUsageDescription inside the ios object of each locale file. Set ios.infoPlist.CFBundleAllowMixedLocalizations to true, list the files under expo.locales in app.json, and Expo writes the translated text into InfoPlist.strings during prebuild.
Step 2: Ask at the right moment
The request is one call: const { status } = await requestTrackingPermissionsAsync(). The system shows the prompt once. It remembers the answer and will not show the prompt again unless the user deletes and reinstalls the app, so you get one shot per install. That makes timing the biggest decision here.
My recommendation: do not fire it as the very first thing on cold launch. Ask after the user has seen what the app does, and before your ad or attribution SDK needs to run. You are allowed to show your own screen first that explains why you would like permission, as long as it is honest about how the data is used. A short screen that says "We use this to keep the ads you see relevant, and the app works the same either way" followed by the system prompt is fine. Pressuring, tricking or misleading people into tapping Allow is not.
- Call getTrackingPermissionsAsync on launch. If the status is granted or denied, the user has already answered, so skip the explainer and start your SDKs accordingly.
- If the status is undetermined, keep tracking SDKs off and continue into the app.
- At your chosen moment, show your explainer screen and then call requestTrackingPermissionsAsync.
- Initialize the ad or attribution SDK only after the promise resolves, passing in whether tracking is allowed.
If you prefer hooks, useTrackingPermissions returns the current permission response plus request and get functions, the same pattern other Expo permission packages use. Our guide to requesting permissions in your Expo app covers that pattern in more depth.
Step 3: Respect the answer
The response object has status, granted, canAskAgain and expires. Status is one of granted, denied or undetermined. Branch on granted: if it is true, you may track; if not, you may not, and that includes falling back to another identifier. A hashed email or phone number used to track someone who said no is still tracking without permission.
- If the user denies, the iOS advertising identifier comes back as a string of zeros, and getAdvertisingId returns null.
- If the user has turned off "Allow Apps to Request to Track" in iOS Settings, your request is denied without a prompt ever appearing.
- getAdvertisingId also returns null in the iOS simulator no matter what, so test the full flow on a real iPhone.
- Don't store the advertising ID. Call getAdvertisingId each time you need it, because users can reset it or change their answer in Settings at any time.
- If the user wants to change their mind later, give them a button that calls Linking.openSettings() so they can flip the switch for your app in iOS Settings. Do not nag.
Your app has to work the same whether the answer is yes or no. Ads can still run without tracking, just less targeted. If a feature only works when tracking is allowed, that is a design problem to fix before App Review finds it.
What happens on Android
ATT is an Apple framework. On Android, requestTrackingPermissionsAsync and getTrackingPermissionsAsync always return granted, and the same is true on any device where isAvailable() returns false. So a passing Android test tells you nothing about your iOS flow, and you should never treat a granted result from Android as user consent for anything Android requires separately.
The package also adds the com.google.android.gms.permission.AD_ID permission to your Android manifest automatically, which lets it read the Android advertising ID through getAdvertisingId. That call returns null when the user has opted out of ad personalization in Android settings. If your app never uses the advertising ID on Android, you can remove the permission by listing its full name in android.blockedPermissions in app.json, which is the only way to strip permissions a package adds.
The EU prompt is changing
Starting with iOS 27.2 and iPadOS 27.2, Apple lets developers use an alternative version of the ATT system prompt in the European Union, with different wording and an optional "Additional Information" button that opens your own screen explaining the request. In Germany, France, Italy, Poland and Romania, only the alternative version is available. The rules about when you need permission stay the same.
Two other EU details matter. You can show the prompt again one year after the user's previous answer, whether they said yes or no, unless they have turned off the system setting that lets apps ask. And you still cannot read the advertising identifier or start tracking until the user grants permission in the system prompt itself. The Expo reference for expo-tracking-transparency does not currently list an option for the alternative prompt or its button, so if you need the Additional Information flow, check the package changelog for your SDK before you plan around it.
Have Claude Code set it up for you
Open your project in the Claude Code desktop app and describe the whole flow, including the rules about when tracking may start:
Read the SDK list it reports back carefully. That list is the honest answer to whether you need ATT at all, and it should match what you declare in App Privacy in App Store Connect. Then add a line to your CLAUDE.md such as "Tracking: no ad or attribution SDK may start before src/lib/tracking.ts says granted" so a later session doesn't quietly move an init call back to app start.
The short version
App Tracking Transparency in Expo is one package, one config plugin option and one function call. The real work is deciding whether you track at all, asking at a moment when the user understands why, and making sure no SDK starts before the answer comes back. Get those right and the prompt stops being a review risk.
If you are building your first iOS app with Claude Code and Expo and want a second set of eyes before App Review, bring it to App Store Launch Club. Members share their builds and help each other get unstuck, and the curriculum covers the full path from first build to first users. Pair this with our guides to the App Store Guideline 5.1.2 rejection, filling in App Privacy details in App Store Connect and requesting permissions in your Expo app. Join at applaunchclub.co for $9 a month.
Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.
Frequently asked questions
How do I add App Tracking Transparency to an Expo app?
Install expo-tracking-transparency with npx expo install, add its config plugin to app.json with a userTrackingPermission message, rebuild the app, and call requestTrackingPermissionsAsync before any ad or attribution SDK starts. Only enable tracking when the result is granted.
Does every Expo app need the App Tracking Transparency prompt?
No. You need it only if your app links its data with data from other companies' apps or websites for targeted ads or ad measurement, or shares data with a data broker. Third-party SDKs count, so check what every ad and analytics SDK in your app does with its data.
How do I set NSUserTrackingUsageDescription in Expo?
Set the userTrackingPermission option on the expo-tracking-transparency config plugin in app.json. Expo writes it to NSUserTrackingUsageDescription in Info.plist when you build. If you leave it out, a generic default message is used.
Can I show the App Tracking Transparency prompt again after the user says no?
Not in most cases. iOS remembers the answer and does not show the prompt again unless the app is deleted and reinstalled. You can offer a button that opens Settings with Linking.openSettings(). In the EU from iOS 27.2, you can show the prompt again one year after the user's previous choice.
Why does requestTrackingPermissionsAsync return granted on Android?
App Tracking Transparency is an Apple framework, so on Android the method always returns granted. It also returns granted on any device where isAvailable() is false. Test the real flow on an iPhone.
Why does getAdvertisingId return null?
On iOS it returns null in the simulator, before the user has granted tracking, after the user denies it, and when the system setting that lets apps ask to track is off. On Android it returns null when the user has opted out of ad personalization.
Does expo-tracking-transparency work in Expo Go?
Yes, it is included in Expo Go, so you can call the permission methods there. Your own userTrackingPermission text is compiled into the binary, so to see your actual prompt wording you need a development build or a store build.
Last reviewed by David on November 24, 2026


