Skip to content

Google module

  • Enum: AffiseModules.GOOGLE (lib/module/affise_modules.dart:8)
  • Native key: "Google" (lib/module/affise_modules.dart:37)

Provides the odm_info value from Google’s On-Device Conversion Measurement SDK on iOS.

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_google

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_google: ^1.7.16

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

  • iOS (CocoaPods): AffiseModule/Google 1.7.16
  • iOS (Swift Package Manager): AffiseModuleGoogle 1.7.16

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

Instead of the Flutter package you can add the CocoaPods subspec to your app’s iOS Podfile yourself. The Flutter README lists GOOGLE in the iOS modules pod table (README.md:409):

pod 'AffiseModule/Google', affise_version

This pulls in Google’s GoogleAdsOnDeviceConversion SDK. See the iOS Google module page for native details.

ProviderType.ODM_INFO → odm_info (lib/parameters/provider_type.dart:108, native key at :337-338). Unlike AD_SERVICE_ATTRIBUTION / PUSHTOKEN_SERVICE, ODM_INFO is defined in the Dart ProviderType enum, so it is exposed to Flutter consumers via getProviders().