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

パッケージ詳細v0.0.4

device_information

Android および iOS の両方で使用可能な、デバイスのIMEI番号、モデル名、APIレベル、CPUタイプ、製品名などのデバイス情報を取得するためのFlutterプラグインです。

AndroidiOS
30日間ダウンロード
369
いいね数
112
Pub ポイント
150

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

flutter pub add device_information

パッケージ概要

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

device_information パッケージは、Android および iOS プラットフォームの両方で詳細なデバイス情報を取得できる Flutter プラグインです。IMEI番号、モデル名、APIレベル、CPUタイプ、製品名などの重要なハードウェアおよびソフトウェア情報を取得できます。クロスプラットフォーム互換性を考慮して設計されており、プラットフォーム固有のコードを書かずにデバイス固有のデータを収集するプロセスを簡素化します。分析、デバイス追跡、アプリのパーソナライズ機能に最適です。

用途

  • デバイスの追跡と識別
  • ユーザー分析とレポート
  • デバイス仕様に基づくアプリのパーソナライズ
  • トラブルシューティングと診断
  • ライセンスの検証

主な機能

  • クロスプラットフォーム対応(Android および iOS)
  • IMEI、モデル、APIレベル、CPUタイプへのアクセス
  • シンプルな API インテグレーション
  • ネイティブコードは不要です
  • リアルタイムでのデバイスデータ取得

適している対象

  • 分析ツールを開発する開発者
  • デバイスレベルの識別を必要とするアプリ
  • エンタープライズまたはセキュリティ中心のアプリケーション
  • デバイスの互換性チェックが必要なアプリ

注意事項

  • 新しいiOSバージョンではIMEIのアクセスが制限されています
  • Android で適切な権限が必要です
  • 機密データの取り扱いにはプライバシー準拠が必要です
  • Android のルート化されていないデバイスに限定

元の README

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

Device Information

A flutter plugin to get device information such as device IMEI number, model name, API level,CPU Type,Product Name etc for both android & iOS.

Installation

Add following dependency in pubspec.yaml file:

device_information:^0.0.4

Install by running:

$ flutter pub get 

Usage

import 'package:device_information/device_information.dart';

try {
      platformVersion = await DeviceInformation.platformVersion;
      imeiNo = await DeviceInformation.deviceIMEINumber;
      modelName = await DeviceInformation.deviceModel;
      manufacturer = await DeviceInformation.deviceManufacturer;
      apiLevel =  await DeviceInformation.apiLevel;
      deviceName = await DeviceInformation.deviceName;
      productName = await DeviceInformation.productName;
      cpuType = await DeviceInformation.cpuName;
      hardware = await DeviceInformation.hardware;
    } on PlatformException {
      platformVersion = 'Failed to get platform version.';
    }

In android add the following permission:

<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

Then for API targetting from Marshmallow, need to request runtime permissions. Although in iOS there is no need to specify permissions.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Developer Team:

Hina Hussain & her team members (Kamran Khan, Abdul Sattar, Faiza Farooqui) :smile: :tada:

Follow me

https://hina-hussain-developer.medium.com/creating-publisher-account-on-the-pub-dev-cf86b91cd2f https://hinahussaindev.blogspot.com/2021/05/creating-publisher-account-on-pubdev.html

License

MIT

カテゴリー

ソースリポジトリ

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

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