搜索插件、代码仓与 APP 分类

GitHub 代码仓erickok/app_set_id

app_set_id

用于检索应用集 ID(Android)或供应商标识符(IDfV,iOS)的轻量级 Flutter 插件

app_set_id 项目封面
星标
13
复刻
4
最近推送(UTC)
2026年8月14日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

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();
Eric Kok GitHub avatar
GitHub 作者

Eric Kok ↗

Senior Android developer, PhD graduate, beer lover

Contractor at VRT Sporza & open-source dev as 2312 developmentLeuven, Belgium官方网站 ↗
语言SwiftDartRubyKotlinHTMLObjective-C

此仓库发布的插件

使用的依赖

依赖清单 6 项

  • flutter{"sdk":"flutter"}
  • flutter_web_plugins{"sdk":"flutter"}
  • plugin_platform_interface^2.1.8
  • web^1.1.0
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^2.0.0

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗