flutter_udid
4.2.0, released 12 days ago by kukuk.me
Retrieve a persistent unique device identifier across app reinstalls on mobile and desktop.
What it does
Retrieves a persistent unique device identifier (UDID) across app reinstalls on iOS, Android, Mac, Windows, and Linux. It utilizes platform-specific APIs and keychain persistence where applicable. It also provides a consistent hashing option to normalize formats across platforms.
AI-written summary of version 4.1.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a persistent device identifier across app reinstalls for analytics or tracking.
- You need a unique hardware or system ID across Android, iOS, Windows, macOS, and Linux.
Skip it when
- You require an identifier that survives a factory reset.
- You cannot tolerate privacy implications or store device-level IDs.
Strengths
- Supports multiple platforms including mobile and desktop.
- Persists across app reinstalls using platform keychain/storage features.
- Provides a consistent format option across all platforms.
Weaknesses
- UDID can change after a factory reset.
- May change on rooted/jailbroken devices or if app signing signature changes.
- On iOS, requesting UDID before first unlock after reboot throws a PlatformException.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Not documented
import 'package:flutter_udid/flutter_udid.dart';
String udid = await FlutterUdid.udid;Alternatives
Packages that do the same job and could replace flutter_udid.
- flutter_launch_arguments
Retrieve Android and iOS launch arguments inside a Flutter app.
73Compare
Works with
Packages commonly used together with flutter_udid: ones it builds on, ones built on it, and its own family.