Skip to content

Huawei module

  • Enum: AffiseModules.HUAWEI (lib/module/affise_modules.dart:16)
  • Native key: "Huawei" (lib/module/affise_modules.dart:53)

README 803-806, 1650 — Huawei OAID and AppGallery install referrer collection.

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_huawei

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_huawei: ^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-huawei: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-huawei:$affise_version"
Affise.getProviders().then((providers) {
var oaid = providers[ProviderType.OAID];
});

ProviderType.OAID is declared at lib/parameters/provider_type.dart:97.

“To get Install referrer by installing from Android AppGallery include module Huawei”

README 1662

See Referrer for the full API.

  • OAID — native key "oaid" (lib/parameters/provider_type.dart:97, native key at :318)
  • OAID_MD5 — native key "oaid_md5" (:98, :320)
  • REFERRER_UPDATED — per CHANGELOG 1.6.52: “Provider REFERRER_UPDATED for modules Huawei, RuStore”