Search packages, repositories and app categories

Package detailsv1.2.0

imei_plugin

get real IMEI for android devices with validate permission on ejecution time and get unique id on ios An alphanumeric string that uniquely identifies a device to the app’s vendor.

30-day downloads
200
Likes
59
Pub points
40

Install package

flutter pub add imei_plugin

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The imei_plugin is a Flutter package that retrieves the unique IMEI (International Mobile Equipment Identity) for Android devices, validating permissions at runtime. On iOS, it provides a unique device identifier tied to the app’s vendor. Designed for cross-platform mobile development, it ensures secure and reliable device identification without exposing sensitive data. The plugin integrates seamlessly with Flutter apps and supports both Android and iOS platforms, offering developers a straightforward way to identify devices programmatically while respecting platform-specific privacy and permission requirements.

Use cases

  • Device tracking in mobile apps
  • User authentication based on device identity
  • Preventing unauthorized access via device ID
  • App analytics and usage monitoring
  • License validation per device

Key features

  • Runtime permission validation on Android
  • Unique device ID on iOS
  • Cross-platform compatibility
  • Secure IMEI retrieval
  • Simple integration with Flutter

Suitable for

  • Mobile apps requiring device identification
  • Apps needing secure user-device binding
  • Developers targeting both Android and iOS
  • Applications with license or access control
  • Analytics and anti-abuse systems

Considerations

  • Requires appropriate permissions on Android
  • iOS ID may change if app is reinstalled
  • Privacy compliance required for device data
  • Limited to physical devices (not emulators)
  • Depends on hardware availability

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Imei Plugin

Build version

Get unique id device on ios and android

Getting Started

Get IMEI (International Mobile Device Identity) for Android devices less than android 10 with runtime permission for android greater than or equal to 10 returns a UUID and get unique identification on ios An alphanumeric string that uniquely identifies a device for the application provider.

Use

import 'package:imei_plugin/imei_plugin.dart';

String imei = await ImeiPlugin.getImei();
List<String> multiImei = await ImeiPlugin.getImeiMulti(); //for double-triple SIM phones
String uuid = await ImeiPlugin.getId();

if you want to always request permission even if the user has already denied it. You can disable validation shouldShowRequestPermissionRationale set value in false

String platformImei = await ImeiPlugin
    .getImei( shouldShowRequestPermissionRationale: false );

default value is false.

New Features!
  • New param shouldShowRequestPermissionRationale only Android

  • getId only android. id generated with UUID.randomUUID()

  • getImeiMulti support for double-triple SIM phones

Platform Support
OS
Android
IOS

License

MIT

Author

This plugin is developed, Free Software, by Kevin Caicedo

Categories

Source repository

Projects using this package

No data available yet.