platform_device_id
1.0.1, released 6 years ago by di1shuai.com
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
What it does
Retrieves platform-specific unique device identifiers such as BIOS UUID, IOPlatformUUID, AndroidId, IdentifierForVendor, and UserAgent using a unified API. It operates as a federated plugin covering all major desktop, mobile, and web platforms.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a unique device identifier across multiple platforms including desktop and web.
- You want to retrieve standard device IDs like Android ID or vendor identifiers with minimal setup.
Skip it when
- You need deep hardware inspection or extended device properties beyond just the device ID.
- Privacy constraints prohibit tracking or utilizing hardware/vendor identifiers.
Strengths
- Supports a wide range of platforms: Android, iOS, Windows, Linux, macOS, and Web.
- Simple and straightforward asynchronous API.
Weaknesses
- Relies on web UserAgent for web platforms, which may not be a stable hardware identifier.
- Limited to fetching just the device ID without additional system metrics.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Not documented
import 'package:platform_device_id/platform_device_id.dart';
String? deviceId = await PlatformDeviceId.getDeviceId;Alternatives
Packages that do the same job and could replace platform_device_id.
- carrier_info
Gets network type, carrier codes, and SIM info on Android and iOS.
86Compare - storage_space
Get device storage space and app-specific storage usage with readable sizes.
78Compare - memory_info
Get device RAM and disk storage information on Android and iOS.
74Compare - system_info_plus
A flutter plugin to get device RAM size.
73Compare