Skip to content
pubscout

platform_device_id_plus

1.0.7, released 2 years ago by an unverified publisher

Get a unique device identifier across Android, iOS, Windows, macOS, Linux, and Web.

$ flutter pub add platform_device_id_plus
Source repository

What it does

Provides a simple asynchronous API to retrieve a unique device ID across multiple platforms such as Android, iOS, Windows, macOS, Linux, and Web. It acts as an upgraded version of the original platform_device_id package with migrated dependencies and modern gradle support.

AI-written summary of version 1.0.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a unique identifier for the current device to track installations or configure user sessions.
  • Your application targets multiple desktop, mobile, and web platforms requiring uniform device ID retrieval.

Skip it when

  • You require secure, hardware-level IDs that never change even across reinstalls and factory resets, as platform IDs can change or reset.
  • You are using alternative packages that already cover your device information needs.

Strengths

  • Supports a wide range of platforms including Android, iOS, Windows, macOS, Linux, and Web.
  • Uses modern 'plus' dependencies and includes fixes for modern Flutter versions.

Weaknesses

  • Relies on platform-specific identifiers (like UserAgent on Web or AndroidId on Android) which may have limitations regarding privacy or uniqueness.
  • Limited documentation beyond basic usage.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
7

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_plus.

  • device_meta

    Provides unified access to device model, brand, manufacturer, UUID, OS version and user‑agent with optional persistent metadata.

  • location

    Flutter plugin to get real-time device location across platforms.

  • wakelock_plus

    Keep the device screen awake across mobile, desktop, and web platforms.

  • universal_ble

    Cross-platform Bluetooth Low Energy (BLE) plugin for Flutter

Works with

Packages commonly used together with platform_device_id_plus: ones it builds on, ones built on it, and its own family.