FLUTTER ECOSYSTEM

platform_device_id

You can get device id from platform - linux/mac/windows/android/ios/web.

Latest version
1.0.1
30-day downloads
2.1K
Likes
409
Pub points
140

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

The platform_device_id package provides a cross-platform solution to retrieve a unique device identifier across Android, iOS, Web, macOS, Windows, and Linux. It abstracts platform-specific methods to deliver a consistent API for obtaining a stable device ID, useful for analytics, user tracking, or licensing. The package is lightweight and designed for simplicity, ensuring developers can access device identifiers without managing platform-specific logic. It leverages native APIs where available and falls back to secure, persistent storage when needed.

Use cases
  • User authentication persistence
  • Analytics and tracking
  • License management
  • Device-based access control
  • Cross-device session handling
Key features
  • Cross-platform compatibility
  • Stable device identifier
  • Secure storage backend
  • Simple API
  • Supports all major platforms
Suitable for
  • Mobile and desktop app developers
  • Apps requiring device identification
  • Analytics integrations
  • Security-focused applications
Considerations
  • Privacy compliance required (e.g., GDPR)
  • Device ID may change on factory reset
  • Not suitable for high-security authentication
  • Limited control over ID generation algorithm
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add platform_device_id

Categories

Source repository

Related projects

No data available yet.