Skip to content

AdService module

  • Enum: AffiseModules.ADSERVICE (lib/module/affise_modules.dart:4)
  • Native key: "AdService" (lib/module/affise_modules.dart:29)

“Sends attributionToken from AdServices framework AAAttribution.attributionToken() to Affise server”

README 372-376

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_adservice

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_adservice: ^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/AdService 1.7.16
  • iOS (Swift Package Manager): AffiseModuleAdService 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 Podfile yourself (README 426):

pod 'AffiseModule/AdService', affise_version

AD_SERVICE_ATTRIBUTION is available in the native Android/iOS SDKs (CHANGELOG 1.6.38) but is not defined in the Dart ProviderType enum (lib/parameters/provider_type.dart:3-128) — it is not exposed to Flutter consumers.