AdService module
Purpose
Section titled “Purpose”
iOS 14.3+. SendsattributionTokenfromAdServicesframeworkAAAttribution.attributionToken()to Affise server.
Module constant
Section titled “Module constant”AffiseModules.ADSERVICE = "AdService"(src/module/AffiseModules.ts:1-16)
Platform notes
Section titled “Platform notes”- iOS only. Requires iOS
14.3+. - Android builds do not include this module.
Installation
Section titled “Installation”Since 1.7.16 the module ships as its own npm package, affise-attribution-module-adservice (iOS). Install it next to the core library:
npm install affise-attribution-libnpm install affise-attribution-module-adserviceThe package only pulls in the native dependency (AffiseModule/AdService at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Run pod install and rebuild the iOS app after installing.
Manual native alternative
Section titled “Manual native alternative”Instead of the npm package you can add the native dependency yourself (README “Modules → Manual Native”):
pod 'AffiseModule/AdService', '1.7.16'Providers contributed
Section titled “Providers contributed”This module feeds the AttributionToken field used server-side; no new ProviderType constants are declared for it in the TypeScript enum at 1.7.16.
See also
Section titled “See also”- Module status to query whether AdService started successfully.