Skip to content

AndroidId module

  • Enum: AffiseModules.ANDROIDID (lib/module/affise_modules.dart:6)
  • Native key: "AndroidId" (lib/module/affise_modules.dart:31)

“Persistent device id for Android”

README 683-687

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_androidid

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_androidid: ^1.7.16

The package does not expose a Dart API of its own — it only pulls in the native module dependency:

  • Android: com.affise:module-androidid:1.7.16

Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.

Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):

implementation "com.affise:module-androidid:$affise_version"
  • ANDROID_ID — native key "android_id" (lib/parameters/provider_type.dart:42, native key at :210)
  • ANDROID_ID_MD5 — native key "android_id_md5" (:43, :212)