unique_device_identifier 2.0.0 copy "unique_device_identifier: ^2.0.0" to clipboard
unique_device_identifier: ^2.0.0 copied to clipboard

A Flutter plugin that provides a unique device identifier on all platforms including Android, iOS, Windows, macOS, Linux, Web.

Changelog #

All notable changes to this project will be documented in this file.

2.0.0 #

  • Breaking Change: getUniqueIdentifier() has been converted to a static method.
    • You can now call it directly without creating an instance:
      final deviceId = await UniqueDeviceIdentifier.getUniqueIdentifier();
      
    • This change simplifies usage but breaks compatibility with the previous instance-based approach:
      // ❌ This will no longer work:
      final deviceId = await UniqueDeviceIdentifier().getUniqueIdentifier();
      

1.0.0 #

  • Initial release of the unique_device_identifier Flutter plugin.
  • Supports the following platforms:
    • ✅ Android (Settings.Secure.ANDROID_ID)
    • ✅ iOS (UIDevice.identifierForVendor)
    • ✅ Windows (MachineGuid from registry)
    • ✅ macOS (IOPlatformUUID via IOKit with macOS 12+ fallback)
    • ✅ Linux (/etc/machine-id)
    • ✅ Web (fingerprint-based hash with fallback to random UUID, stored in localStorage)
  • No external dependencies required.
  • Provides a consistent getUniqueIdentifier() interface for all platforms using MethodChannel and Dart interop.
1
likes
140
points
99
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that provides a unique device identifier on all platforms including Android, iOS, Windows, macOS, Linux, Web.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on unique_device_identifier