Plugin for getting a persistent UDID across app reinstalls on iOS and Android.
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.
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:
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 make to 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.
For help on editing plugin code, view the documentation.
Demonstrates how to use the flutter_udid plugin.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: cirrus_flutter_udid: ^2.0.0+2
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Aug 18, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Document public APIs. (-1 points)
5 out of 5 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.