A Flutter plugin for retrieving the uid of a device
To retrieve the id just import and call
String device_id = await DeviceId.getID;.
To retrieve the imei call
String imei = await DeviceId.getIMEI;.
To retrieve the meid call
String meid = await DeviceId.getMEID;.
For imei and meid platform version >=26 is required, otherwise it will produces a PlatformExcpetion
Now you are good to go!
Note: device ids are not safe as you think, rooted/jailbreaked devices are able to change the ids.
Add androidx support, add IMEI, add MEID
Upgrade to swift 4.1.x
iOS error fix
Demonstrates how to use the device_id plugin.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: device_id: ^0.2.0
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.2.0||Apr 11, 2019|
|0.1.3||Sep 17, 2018|
|0.1.2||Aug 17, 2018|
|0.1.1||Jul 7, 2018|
|0.1.0||Jul 7, 2018|
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 Apr 16, 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.
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.