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

패키지 상세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 개

소스 저장소

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