# fluttertpc_flutter_udid **Repository Path**: openharmony-sig/fluttertpc_flutter_udid ## Basic Information - **Project Name**: fluttertpc_flutter_udid - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2024-06-25 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🚨 **重要提示 | IMPORTANT** > > **⚠️ 此代码仓已归档。新地址请访问 [fluttertpc_flutter_udid](https://gitcode.com/openharmony-sig/fluttertpc_flutter_udid)。| ⚠️ This repository has been archived. For the new address, please visit [fluttertpc_flutter_udid](https://gitcode.com/openharmony-sig/fluttertpc_flutter_udid).** > --- > # flutter_udid [![pub package](https://img.shields.io/pub/v/flutter_udid.svg)](https://pub.dartlang.org/packages/flutter_udid) Plugin to retrieve a persistent UDID across app reinstalls on iOS and Android. ## Getting Started ``` import 'package:flutter_udid/flutter_udid.dart'; String udid = await FlutterUdid.udid; ``` This provides an UDID for both iOS and Android using the format of the corresponding platform. | Platform | Format | | ------------- | ------------- | | iOS | `7946DA4E-8429-423C-B405-B3FC77914E3E` | | Android | `8af8770a27cfd182` | To get a consistent formatting on both 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` 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 another already existing user through random guessing because of the complexity of the ID. For help getting started with Flutter, view the online [documentation](https://flutter.io/). For help on editing plugin code, view the [documentation](https://flutter.io/developing-packages/#edit-plugin-package).