Search packages, repositories and app categories

Package detailsv1.6.0

app_set_id

Tiny Flutter plugin to retrieve the App Set ID (Android) or Identifier for Vendor (IDfV, iOS)

AndroidiOSWebmacOS
30-day downloads
35.7K
Likes
35
Pub points
160

Install package

flutter pub add app_set_id

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight Flutter plugin that retrieves the App Set ID on Android and the Identifier for Vendor (IDfV) on iOS. It provides a consistent cross-platform API to access device-specific identifiers useful for tracking app installations or user sessions without personal data. The plugin is designed for simplicity and privacy compliance, making it suitable for analytics, licensing, or device-based authentication. Available on Android, iOS, Web, and macOS, it integrates seamlessly with Flutter projects.

Use cases

  • Tracking app installations across devices
  • Implementing device-based licensing
  • Supporting analytics with unique identifiers
  • Enabling user session management
  • Facilitating secure authentication flows

Key features

  • Cross-platform compatibility
  • Privacy-focused identifier access
  • Simple API integration
  • Supports Android App Set ID and iOS IDfV
  • Minimal code footprint

Suitable for

  • Analytics developers
  • App licensing systems
  • Mobile app security implementations
  • Cross-platform Flutter apps requiring device identifiers

Considerations

  • Identifiers may change if app is reinstalled
  • Not suitable for personal identification
  • Requires appropriate permissions on Android
  • Behavior differs slightly between platforms
  • Should not be used for sensitive user tracking

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

app_set_id

pub package

A tiny Flutter library to retrieve a vendor-specific privacy-friendly device-unique identifier, also called IDfV or App Set ID.

Android

On Android it returns the App Set ID (ASID). As per the developer documentation:

For apps that are installed by the Google Play store, the app set ID API returns an ID scoped to the set of apps published under the same Google Play developer account.

iOS

On iOS/iPadOS it returns the Identifier for Vendor (IDfV). as per the developer documentation:

The value of this property is the same for apps that come from the same vendor running on the same device. (...) Normally, the vendor is determined by data provided by the App Store.

MacOS

No true IDfV exists on MacOS, so it returns the MAC address of the first network interface (in hexadecimal format, without separators). This is not a real IDfV, but Apple recommends using it as a fallback in the developer documentation, even in the context of validating purchases.

Web

For ease of integration in web projects, on web it returns the browser user agent. This is NOT a good identifier and only here for development purposes.

Installation

Add to your pubspec.yaml file:

dependencies:
  app_set_id: ^1.5.2

Import the library and call getIdentifer:

import 'package:app_set_id/app_set_id.dart';

final appSetId = await AppSetId().getIdentifier();

Categories

Dependencies

Dependency list 2 items

  • plugin_platform_interface^2.1.8
  • web^1.1.0

Source repository

Projects using this package

No data available yet.