Search packages, repositories and app categories

Package detailsv0.1.0

mobile_device_identifier

Flutter package to obtain unique ID from mobile device (android / ios)

AndroidiOS
30-day downloads
12.5K
Likes
91
Pub points
150

Install package

flutter pub add mobile_device_identifier

Package Overview

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

A Flutter package that provides a unique identifier for mobile devices on both Android and iOS platforms. It enables apps to retrieve a consistent, device-specific ID useful for analytics, user tracking, or licensing. The package abstracts platform-specific implementations, offering a simple API to access the identifier without requiring native code knowledge. Designed for reliability and privacy compliance, it ensures secure and efficient device identification across different operating systems.

Use cases

  • User analytics tracking
  • App licensing and activation
  • Device-based authentication
  • Cross-session user identification
  • Personalized content delivery

Key features

  • Cross-platform support (Android & iOS)
  • Simple API integration
  • Privacy-compliant device identification
  • No need for native code
  • Secure and reliable ID generation

Suitable for

  • Analytics-focused applications
  • License management systems
  • User session persistence
  • Mobile app development with device tracking needs
  • Apps requiring unique device identifiers

Considerations

  • Requires appropriate permissions on Android
  • May be affected by app data reset or device factory reset
  • Not suitable for high-security authentication
  • ID may change if app is reinstalled or system is restored
  • Compliance with privacy regulations is required

Original README

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

Actions Status

mobile_device_identifier

Flutter package to obtain unique ID from mobile device (android / ios) with uninstall resistant

Android minSdkVersion = 21
iOS minimum version = 11

Usage

final _mobileDeviceIdentifier = MobileDeviceIdentifier().getDeviceId();

You can combined with any encoding method to beautify string id. For example use Base64 encode with return value like

RjFGMUJDNUItQkJERC00NjZCLUE2MzgtQzRDNUZGMDdCQzhF

Method

Android

For android device, this package use UUID with MediaDrm to generate unique ID. With that, unique ID will not change even after uninstalling application

iOS

For iPhone device, this package use UUID with JNKeychain to generate unique ID to make ID still same even after reinstall application

Categories

Dependencies

Dependency list 1 items

  • plugin_platform_interface^2.1.6

Source repository

Projects using this package

No data available yet.