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

パッケージ詳細v0.4.0

unique_identifier

Android および iOS から一意の識別子を取得するための新しい Flutter プラグイン。

AndroidiOS
30日間ダウンロード
1.3万
いいね数
58
Pub ポイント
140

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

flutter pub add unique_identifier

パッケージ概要

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

unique_identifier パッケージは、Android および iOS プラットフォーム上で一意のデバイス識別子を取得するための簡単な方法を提供する Flutter プラグインです。信頼性と安全性を確保するためにネイティブ API を活用しており、トラッキング、ライセンス管理、ユーザー認証などの目的に役立ちます。このプラグインは軽量で、最小限のセットアップで簡単に統合できます。プラットフォーム固有のプライバシー規則を尊重し、不要なデータを収集しません。開発者がネイティブコードを直接管理せずに、複数プラットフォーム間で一貫したデバイス識別を実現したい場合に最適です。

用途

  • デバイスの追跡
  • アプリライセンス
  • ユーザー認証
  • Analytics
  • セッション管理

主な機能

  • クロスプラットフォーム対応(Android および iOS)
  • シンプルなAPI統合
  • プライバシー指針を尊重します
  • 追加の権限は必要ありません
  • セキュアな識別子の生成

適している対象

  • モバイルアプリ開発者
  • 認証システム
  • ライセンスソリューション
  • アナリティクスの実装
  • プライバシーを重視するアプリ

注意事項

  • アプリの再インストール後に識別子が変更される可能性があります
  • 高セキュリティ暗号化には適していません
  • プラットフォーム固有の実装に依存する
  • 一部の地域ではユーザーの同意が必要になる場合があります
  • デバイスレベルの独自性に限定

元の README

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

Unique Identifier

pub package

A Flutter plugin to get the ANDROID_ID for android and identifierForVendor for iOS platforms.

Installing

dependencies:
  unique_identifier: ^0.4.0
Import
import 'package:unique_identifier/unique_identifier.dart';

How To Use

 dart String _identifier = 'Unknown';
  
 @override
 void initState() {
   super.initState();
   initUniqueIdentifierState();
 }

 Future<void> initUniqueIdentifierState() async {
   String identifier;
   try {
     identifier = await UniqueIdentifier.serial;
   } on PlatformException {
     identifier = 'Failed to get Unique Identifier';
   }

   if (!mounted) return;

   setState(() {
     _identifier = identifier;
   });
 }

 @override
 Widget build(BuildContext context) {
   return new MaterialApp(
     home: new Scaffold(
       appBar: new AppBar(
         title: const Text('Plugin example app'),
       ),
       body: new Center(
         child: new Text('Running on device with id: $_identifier\n'),
       ),
     ),
   );
 }

Bugs & Requests

If you encounter any bugs feel free to open an issue. Raise a ticket on github for suggestions. Pull request are also welcome.

Flutter

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

For help on editing plugin code, view the documentation.

License

MIT License

NOTE

On Android 8.0 (API level 26) and higher versions of the platform, a 64-bit number (expressed as a hexadecimal string), unique to each combination of app-signing key, user, and device. Values of ANDROID_ID are scoped by signing key and user. The value may change if a factory reset is performed on the device or if an APK signing key changes. For more information about how the platform handles ANDROID_ID in Android 8.0 (API level 26) and higher, see Android 8.0 Behavior Changes. Note: For apps that were installed prior to updating the device to a version of Android 8.0 (API level 26) or higher, the value of ANDROID_ID changes if the app is uninstalled and then reinstalled after the OTA. To preserve values across uninstalls after an OTA to Android 8.0 or higher, developers can use Key/Value Backup. In versions of the platform lower than Android 8.0 (API level 26), a 64-bit number (expressed as a hexadecimal string) that is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device. On devices that have multiple users, each user appears as a completely separate device, so the ANDROID_ID value is unique to each user. Note: If the caller is an Instant App the ID is scoped to the Instant App, it is generated when the Instant App is first installed and reset if the user clears the Instant App.

カテゴリー

依存関係

依存関係一覧 1 件

  • plugin_platform_interface^2.0.2

ソースリポジトリ

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

データはまだありません。