Skip to content
pubscout

device_uuid

0.0.4, released 4 years ago by an unverified publisher

A plugin to get a unique device UUID for Android, iOS, and macOS.

WASM-readyUnverified publisher
$ flutter pub add device_uuid
Source repository

What it does

Provides a method to retrieve a persistent device UUID. On Android, it returns the ANDROID_ID encrypted with SHA-1, while on iOS and macOS, it uses a hash string saved in the Keychain.

AI-written summary of version 0.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a unique identifier for the device across app sessions
  • You are targeting Android, iOS, and macOS platforms

Skip it when

  • You need more detailed device hardware or OS version information
  • You need cross-platform identifiers outside of Android, iOS, and macOS

Strengths

  • Simple API to fetch a device UUID
  • Handles keychain storage automatically on Apple platforms

Weaknesses

  • Limited documentation and features beyond basic UUID retrieval
  • Platform support is restricted to Android, iOS, and macOS

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Add the dependency to pubspec.yaml and call the API.

final uuid = DeviceUuid().getUUID();

Alternatives

Packages that do the same job and could replace device_uuid.

Works with

Packages commonly used together with device_uuid: ones it builds on, ones built on it, and its own family.