firebase_testlab_detector
3.0.1, released 5 days ago by achim.io
Determines whether the app is running within Firebase Test Lab on Android.
What it does
This plugin for Android detects if the application is executing within Firebase Test Lab during Google Play Pre-Launch Reports. It checks the system property firebase.test.lab and returns a boolean value or null on unsupported platforms.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to disable analytics or tracking during Firebase Test Lab runs.
- You need to differentiate between regular user usage and automated pre-launch report tests.
Skip it when
- Your app targets platforms other than Android where this plugin returns null.
- You need features beyond detecting Firebase Test Lab environments.
Strengths
- Simple API with a single check method.
- Prevents skewed analytics data from automated pre-launch reports.
Weaknesses
- Only works on Android.
- Requires Flutter 3.47 and Android API 24 or newer.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires Flutter 3.47 or newer and Android API 24 or newer. Android builds require AGP 9 with built-in Kotlin support.
final isRunningInTestlab = await FirebaseTestlabDetector.isAppRunningInTestlab() ?? false;Alternatives
Packages that do the same job and could replace firebase_testlab_detector.
- google_api_availability
Check the availability of Google Play services on an Android device.
88Compare - launch_app_store
Flutter plugin to leave reviews and ratings in Google Play Store and Apple App Store.
71Compare - flutter_launch_arguments
Retrieve Android and iOS launch arguments inside a Flutter app.
73Compare - play_install_referrer
Flutter plugin to fetch Android Play Store install referrer details
81Compare
Works with
Packages commonly used together with firebase_testlab_detector: ones it builds on, ones built on it, and its own family.