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.
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.
- platform_device_id
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
50Compare - carrier_info
Gets network type, carrier codes, and SIM info on Android and iOS.
86Compare - corner_radius_plugin
Flutter plugin to read device screen corner radii on Android and iOS
69Compare - memory_info
Get device RAM and disk storage information on Android and iOS.
74Compare
Works with
Packages commonly used together with device_uuid: ones it builds on, ones built on it, and its own family.