emulator_checker 1.0.4 copy "emulator_checker: ^1.0.4" to clipboard
emulator_checker: ^1.0.4 copied to clipboard

A Flutter plugin that detects whether an application is running on an emulator or a physical device. This can be useful for security purposes, analytics, and feature flagging, allowing developers to t [...]

📱 Emulator Checker #

A Flutter plugin that detects whether an app is running on an emulator or a real device. This can be useful for security measures, analytics, and feature flagging, allowing developers to modify app behavior based on the runtime environment.

🛠 Installation #

Add this to your pubspec.yaml:

dependencies:
  emulator_checker: latest_version

Run:

flutter pub get

🚀 Features #

Null safety support (starting from version 3.0.0)
✅ Detects if the app is running on an emulator
✅ Supports Android and iOS
✅ Lightweight and easy to use

🚀 Usage #

Import the package:

import 'package:emulator_checker/emulator_checker.dart';

Example: Detect if Running on an Emulator #

void checkDevice() async {
  bool isEmulator = await EmulatorChecker().isEmulator();
  print(isEmulator ? "Running on an emulator" : "Running on a real device");
}

💡 Why Use Emulator Detection? #

  • Security: Prevent unauthorized access by blocking emulators.
  • Analytics: Exclude emulator-based test data from analytics reports.
  • Feature Control: Restrict certain app features for real devices only.

❤️ Support My Work #

If you find this package useful, you can buy me a coffee to support development!

Buy Me a Coffee

2
likes
150
points
630
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that detects whether an application is running on an emulator or a physical device. This can be useful for security purposes, analytics, and feature flagging, allowing developers to tailor app behavior based on the runtime environment. Supports Android and iOS platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on emulator_checker

Packages that implement emulator_checker