emulator_checker 0.0.2 copy "emulator_checker: ^0.0.2" to clipboard
emulator_checker: ^0.0.2 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

🚀 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");
}

📌 Features #

✅ Detects if the app is running on an emulator
✅ Supports Android and iOS
✅ Lightweight and easy to use

💡 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
0
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

License

unknown (license)

Dependencies

device_info_plus, get_radio_version_plugin

More

Packages that depend on emulator_checker