Skip to content

Phone module

  • Enum: AffiseModules.PHONE (lib/module/affise_modules.dart:12)
  • Native key: "Phone" (lib/module/affise_modules.dart:43)

README 819-822 — collects phone-level metadata such as mobile network type and carrier ISP on Android.

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_phone

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_phone: ^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-phone: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-phone:$affise_version"
  • NETWORK_TYPE — native key "network_type" (lib/parameters/provider_type.dart:120, native key at :356)
  • ISP — native key "isp" (:121, :358)