AdService module
- Enum:
AffiseModules.ADSERVICE(lib/module/affise_modules.dart:4) - Native key:
"AdService"(lib/module/affise_modules.dart:29)
Purpose
Section titled “Purpose”“Sends
attributionTokenfromAdServicesframeworkAAAttribution.attributionToken()to Affise server”README 372-376
Platform
Section titled “Platform”Install
Section titled “Install”flutter pub add affise_attribution_libflutter pub add affise_attribution_module_adserviceor add the dependency to pubspec.yaml:
dependencies: affise_attribution_lib: ^1.7.16 affise_attribution_module_adservice: ^1.7.16The package does not expose a Dart API of its own — it only pulls in the native module dependency:
- iOS (CocoaPods):
AffiseModule/AdService1.7.16 - iOS (Swift Package Manager):
AffiseModuleAdService1.7.16
Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.
Native setup — alternative (iOS)
Section titled “Native setup — alternative (iOS)”Instead of the Flutter package you can add the CocoaPods subspec to your app’s Podfile yourself (README 426):
pod 'AffiseModule/AdService', affise_versionProviderType contribution
Section titled “ProviderType contribution”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.