android_id

Flutter Community: android_id

用于检索 Android ID 的 Flutter 插件。

入门

  • 添加到 pubspec.yaml
  • 在您的代码中使用插件(请参见以下所有方法的示例)

用法

const _androidIdPlugin = AndroidId();

final bool androidId = await _androidIdPlugin.getId();

GitHub

查看 Github