Skip to content
pubscout

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.

$ flutter pub add platform_device_id
Source repository

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.