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

套件詳情v0.1.0

mobile_device_identifier

用於從移動設備(Android / iOS)取得唯一 ID 的 Flutter 套件

AndroidiOS
近 30 天下載
1.3萬
喜歡數
91
Pub 分數
150

安裝套件

flutter pub add mobile_device_identifier

套件介紹

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

一個 Flutter 套件,為 Android 和 iOS 平台上的行動裝置提供唯一識別碼。它讓應用程式能夠取得一致且特定於裝置的 ID,適用於分析、使用者追蹤或授權。該套件抽象了平台特定的實作,提供簡單的 API 來存取識別碼,無需了解原生程式碼知識。設計上注重可靠性與隱私合規性,確保在不同作業系統上安全且高效地進行裝置識別。

適用情境

  • 使用者分析追蹤
  • 應用授權與啟用
  • 基於設備的驗證
  • 跨會話使用者識別
  • 個人化內容傳遞

主要特色

  • 跨平台支援(Android 與 iOS)
  • 簡單的 API 結合
  • 符合隱私要求的裝置識別
  • 不需要原生程式碼
  • 安全可靠的 ID 生成

適合對象

  • 以分析為重點的應用程式
  • 許可證管理系統
  • 使用者會話持續性
  • 使用裝置追蹤功能進行行動應用程式開發需要
  • 需要唯一設備識別碼的應用

使用建議

  • Android 上需要適當的權限
  • 可能受到應用資料重設或裝置工廠重設的影響
  • 不適合高安全性驗證
  • 如果重新安裝應用程式或系統還原,ID 可能會變更
  • 遵守隱私法規是必要的

原始 README

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

Actions Status

mobile_device_identifier

Flutter package to obtain unique ID from mobile device (android / ios) with uninstall resistant

Android minSdkVersion = 21
iOS minimum version = 11

Usage

final _mobileDeviceIdentifier = MobileDeviceIdentifier().getDeviceId();

You can combined with any encoding method to beautify string id. For example use Base64 encode with return value like

RjFGMUJDNUItQkJERC00NjZCLUE2MzgtQzRDNUZGMDdCQzhF

Method

Android

For android device, this package use UUID with MediaDrm to generate unique ID. With that, unique ID will not change even after uninstalling application

iOS

For iPhone device, this package use UUID with JNKeychain to generate unique ID to make ID still same even after reinstall application

所屬分類

依賴

依賴清單 1 項

  • plugin_platform_interface^2.1.6

原始碼儲存庫

使用此套件的專案

暫無相關資料。