패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.4

device_information

Android 및 iOS 모두에서 기기 IMEI 번호, 모델 이름, API 레벨, CPU 유형, 제품 이름 등과 같은 장치 정보를 가져오기 위한 플러터 플러그인입니다.

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

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.