Skip to content
pubscout

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.

WASM-ready
$ flutter pub add firebase_testlab_detector
Source repository

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.

Works with

Packages commonly used together with firebase_testlab_detector: ones it builds on, ones built on it, and its own family.