パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v4.2.0

flutter_udid

iOS および Android で再インストール後も継続的に UDID を取得するためのプラグイン

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
14.4万
いいね数
290
Pub ポイント
160

パッケージをインストール

flutter pub add flutter_udid

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

flutter_udid は、Android、iOS、macOS、Windows、Linux でアプリの再インストール後も持続可能な一意のデバイス識別子(UDID)を提供するFlutterプラグインです。このプラグインは、デバイスに紐づいた一貫したIDを安全に生成・保存し、一時的または揮発的な識別子に依存せずにユーザーのデバイスを追跡できるようにします。プラットフォーム固有のメカニズムを利用することで、信頼性とプライバシー準拠を確保しています。ライセンス管理や分析、不正防止システムなど、長期的なデバイス識別が必要な状況で特に役立ちます。ソースコードはGitHub上で公開されており、透明性とカスタマイズ性を確保しています。

用途

  • アプリの再インストール後のデバイス追跡
  • ライセンスおよびアクティベーションシステム
  • ユーザー分析とアトリビューション
  • 不正行為防止およびセキュリティモニタリング

主な機能

  • アプリの再インストール後に永続的
  • クロスプラットフォーム対応(Android、iOS、macOS、Windows、Linux)
  • デバイスIDの安全な保存
  • ネイティブプラットフォームメカニズムを使用
  • オープンソースで透明性がある

適している対象

  • 長期的なデバイス識別が必要なアプリ
  • セキュリティに敏感なアプリケーション
  • 分析およびライセンスプラットフォーム
  • プライバシーとコンプライアンスを最優先する開発者

注意事項

  • Android および iOS で適切な権限が必要です
  • 誤用された場合、プライバシー上の懸念を引き起こす可能性があります
  • ユーザーを直接特定するには適していません
  • プラットフォームレベルの永続化メカニズムに依存しています
  • ユーザーの同意と透明性を伴って使用すべきです

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_udid

pub package

Plugin to retrieve a persistent UDID across app reinstalls on iOS, Android, Mac, Windows & Linux.

Usage

import 'package:flutter_udid/flutter_udid.dart';

String udid = await FlutterUdid.udid;

This provides an UDID using the format of the corresponding platform.

Platform IDs

Platform Format Source
iOS 7946DA4E-8429-423C-B405-B3FC77914E3E identifierForVendor, saved to Keychain for persistence
Android 8af8770a27cfd182 Settings.Secure.ANDROID_ID
Mac 707E990C-D002-520B-ABA6-4216C6D514BF kIOPlatformUUIDKey
Windows 99A4D301-53F5-11CB-8CA0-9CA39A9E1F01 BIOS UUID
Linux 1124435e065241dcae2241e9caab9a6c Machine ID
iOS Keychain Availability

On iOS, the UDID is stored in Keychain with kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly. This means it is available only after the user has unlocked the device once after reboot, including later background launches while the device is locked. Before the first unlock after reboot, requesting the UDID throws a PlatformException.

Consistent Format

To get a consistent formatting on all platforms use:

import 'package:flutter_udid/flutter_udid.dart';

String udid = await FlutterUdid.consistentUdid;

This will result in an UDID of the following format:

984725b6c4f55963cc52fca0f943f9a8060b1c71900d542c79669b6dc718a64b

Persistence Notes

The UDID can change after a factory reset!

Additionally, if a device has been updated to Android 8.0 through an OTA and the app is reinstalled, the UDID may change as well due to security changes in Android 8.0.

On rooted and jailbroken devices the ID can be changed, so please take this into account. However, it should not be possible to identify as a different device through random guessing because of the complexity of the ID.

Furthermore, the UDID may also change if there is a change in the app's signing signature, for both iOS and Android. Ensure that you always use the same digital signature to sign your app.

Flutter Resources

For help getting started with Flutter, view the online documentation.

For help on editing plugin code, view the documentation.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト