android_id 0.1.2
android_id: ^0.1.2 copied to clipboard
A Flutter plugin for getting the Android ID. Only for Android.
android_id #
A Flutter plugin for retrieving the Android ID.
Getting started #
- Add plugin to pubspec.yaml
- Use it in your code (see examples of all methods below)
Usage #
const _androidIdPlugin = AndroidId();
final String? androidId = await _androidIdPlugin.getId();
Google Play #
Before using this plugin in your app, make sure to follow Google Play guidelines. For example here:
Persistent identifiers, including Android IDUse for non-advertising purposes You can use persistent identifiers as long as you have a privacy policy and handle the data in accordance with the Developer Distribution Agreement and all applicable privacy laws in the areas where you make your app available.