Skip to content

Phone module

Populate cellular network operator providers.

  • AffiseModules.PHONE = "Phone" (src/module/AffiseModules.ts:1-16)

Android only. No TypeScript surface beyond the module gate.

Since 1.7.16 the module ships as its own npm package, affise-attribution-module-phone (Android). Install it next to the core library:

Terminal window
npm install affise-attribution-lib
npm install affise-attribution-module-phone

The package only pulls in the native dependency (com.affise:module-phone at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Rebuild the Android app after installing.

Instead of the npm package you can add the native dependency yourself (README “Modules → Manual Native”):

implementation "com.affise:module-phone:$affise_version"

From src/parameters/ProviderType.ts:118-119:

  • NETWORK_TYPE
  • ISP