Plugin for getting 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.
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.
- Update Gradle and Kotlin plugins
- Minor reformatting
- Added consistentUdid to get an UDID of the same format on both platforms
- Initial release
Demonstrates how to use the flutter_udid plugin.
Getting Started #
For help getting started with Flutter, view our online documentation.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: flutter_udid: ^1.0.0
2. Install it
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.
3. Import it
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 Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.5.1
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.4
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Health issues and suggestions
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.