Meta module
- Enum:
AffiseModules.META(lib/module/affise_modules.dart:9) - Native key:
"Meta"(lib/module/affise_modules.dart:37)
Purpose
Section titled “Purpose”README 474-506 — Meta Install Referrer. Requires the Facebook App ID via AffiseConfig.FB_APP_ID.
Platform
Section titled “Platform”Install
Section titled “Install”flutter pub add affise_attribution_libflutter pub add affise_attribution_module_metaor add the dependency to pubspec.yaml:
dependencies: affise_attribution_lib: ^1.7.16 affise_attribution_module_meta: ^1.7.16The package does not expose a Dart API of its own — it only pulls in the native module dependency:
- Android:
com.affise:module-meta:1.7.16
Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.
Native setup — alternative (Android)
Section titled “Native setup — alternative (Android)”Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):
implementation "com.affise:module-meta:$affise_version"Android manifest
Section titled “Android manifest”Required regardless of how the module is installed (Flutter package or native dependency). Add a <queries> block to your AndroidManifest.xml so the module can query the Meta family of packages:
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"> <queries> <package android:name="com.facebook.katana" /> <package android:name="com.instagram.android" /> <package android:name="com.facebook.lite" /> </queries>
<application> ... </application></manifest>Provide your Facebook App ID
Section titled “Provide your Facebook App ID”Set AffiseConfig.FB_APP_ID during initialization (see Optional setup):
Affise .settings( affiseAppId: "Your appId", secretKey: "Your SDK secretKey", ) .setConfigValue(AffiseConfig.FB_APP_ID, "Your Facebook App Id") .start(); // Start Affise SDKProviderType contributions
Section titled “ProviderType contributions”META— native key"meta"(lib/parameters/provider_type.dart:111, native key at:342)