Huawei module
Purpose
Section titled “Purpose”Use Android Huawei Module to get OAID (Open Advertising Identifier).
Open Advertising Identifier is supported automatically, no actions needed
Module constant
Section titled “Module constant”AffiseModules.HUAWEI = "Huawei"(src/module/AffiseModules.ts:1-16)
Platform notes
Section titled “Platform notes”Installation
Section titled “Installation”Since 1.7.16 the module ships as its own npm package, affise-attribution-module-huawei (Android). Install it next to the core library:
npm install affise-attribution-libnpm install affise-attribution-module-huaweiThe package only pulls in the native dependency (com.affise:module-huawei at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Rebuild the Android app after installing.
Manual native alternative
Section titled “Manual native alternative”Instead of the npm package you can add the native dependency yourself (README “Modules → Manual Native”):
Add the Maven coordinate:
implementation "com.affise:module-huawei:$affise_version"Providers contributed
Section titled “Providers contributed”From src/parameters/ProviderType.ts:98-99:
OAIDOAID_MD5