Expo module to check whether app was distributed through TestFlight
npm install expo-is-testflightAn Expo module to detect if your iOS app was distributed through TestFlight.
``bash`
npm install expo-is-testflight
For bare React Native projects, run npx pod-install after installing.
`typescript
import isTestFlight from 'expo-is-testflight';
if (isTestFlight) {
console.log('App is running from TestFlight');
} else {
console.log('App is NOT running from TestFlight');
}
`
| Platform | Supported |
|----------|-----------|
| iOS | Yes |
| Android | No (always returns false) |
On iOS, the module determines if the app is running from TestFlight by checking:
1. Whether the app store receipt is a sandbox receipt (sandboxReceipt`)
2. Whether the app has an embedded provisioning profile
Apps distributed through TestFlight have a sandbox receipt but no embedded provisioning profile, which distinguishes them from apps installed via Xcode (which have both) and App Store releases (which have neither sandbox receipt nor provisioning profile).
- Show beta features to TestFlight testers
- Display different UI for beta vs production builds
- Enable debug logging for TestFlight builds
- Show feedback prompts to beta testers
- iOS 15.1+
- Expo SDK 54+
MIT