mobile_device_identifier
0.1.0, released 3 weeks ago by an unverified publisher
Provides a persistent unique device identifier for Android and iOS.
WASM-ready
What it does
The package generates a device‑specific UUID that survives app uninstall/reinstall on both Android and iOS. It uses MediaDrm on Android and the native Keychain on iOS to store the identifier.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a stable identifier for licensing, analytics, or device‑specific settings across reinstalls
- You target only Android and iOS and want a simple plug‑and‑play solution
Skip it when
- You require a privacy‑preserving identifier that resets on reinstall
- You need support for web, desktop, or other platforms
- Your app cannot use native APIs or keychain access
Strengths
- Uninstall‑resistant ID on both platforms
- No extra configuration beyond adding the plugin
- Supports latest Flutter SDK
Weaknesses
- Limited to mobile platforms only
- May raise privacy concerns due to persistent identifier
- Relies on native APIs, so debugging can be harder
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
final deviceId = await MobileDeviceIdentifier().getDeviceId();Alternatives
Packages that do the same job and could replace mobile_device_identifier.
Works with
Packages commonly used together with mobile_device_identifier: ones it builds on, ones built on it, and its own family.