搜尋套件、儲存庫與 APP 分類

套件詳情v1.6.0

app_set_id

用於檢索應用集 ID(Android)或供應商識別碼(IDfV,iOS)的輕量級 Flutter 外掛程式

AndroidiOSWebmacOS
近 30 天下載
3.6萬
喜歡數
35
Pub 分數
160

安裝套件

flutter pub add app_set_id

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個輕量級的 Flutter 插件,可在 Android 上檢索應用集 ID,在 iOS 上檢索供應商識別碼(IDfV)。它提供一致的跨平台 API,用於存取設備特定的識別碼,有助於追蹤應用安裝或使用者會話,且不包含個人資料。此插件設計簡潔,符合隱私合規要求,適用於分析、授權或基於設備的身份驗證。支援 Android、iOS、Web 和 macOS,可無縫整合至 Flutter 專案中。

適用情境

  • 跨裝置追蹤應用安裝
  • 實施基於設備的許可
  • 使用唯一標識符支援分析
  • 啟用使用者會話管理
  • 促進安全的身份驗證流程

主要特色

  • 跨平台相容性
  • 注重隱私的識別碼存取
  • 簡單 API 結合
  • 支援 Android 應用集 ID 和 iOS IDfV
  • 最小代碼佔用

適合對象

  • 分析開發人員
  • 應用授權系統
  • 行動應用程式安全實作
  • 跨平台 Flutter 應用需要設備識別碼

使用建議

  • 如果重新安裝應用,識別碼可能會變更
  • 不適合用於個人識別
  • 需要在 Android 上具備適當的權限
  • 行為在不同平台之間略有差異
  • 不應用於敏感用戶追蹤

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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();

所屬分類

依賴

依賴清單 2 項

  • plugin_platform_interface^2.1.8
  • web^1.1.0

原始碼儲存庫

使用此套件的專案

暫無相關資料。