AndroidでApp Set IDを取得し、iOSでVendor向け識別子(IDfV)を取得する軽量なFlutterプラグインです。個人データを含まず、アプリのインストールやユーザー セッションの追跡に役立つデバイス固有の識別子にアクセスするための一貫したクロスプラットフォームAPIを提供します。シンプルさとプライバシー準拠を重視して設計されており、分析、ライセンス管理、デバイスベースの認証に適しています。Android、iOS、Web、macOSに対応しており、Flutterプロジェクトにスムーズに統合できます。
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.
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 = awaitAppSetId().getIdentifier();