Meta module
Purpose
Section titled “Purpose”Meta Install Referrer.
Module constant
Section titled “Module constant”AffiseModules.META = "Meta"(src/module/AffiseModules.ts:1-16)
Platform notes
Section titled “Platform notes”Android only. No TypeScript surface beyond the module gate.
Installation
Section titled “Installation”Since 1.7.16 the module ships as its own npm package, affise-attribution-module-meta (Android). Install it next to the core library:
npm install affise-attribution-libnpm install affise-attribution-module-metaThe package only pulls in the native dependency (com.affise:module-meta at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Rebuild the Android 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”):
implementation "com.affise:module-meta:$affise_version"AndroidManifest changes
Section titled “AndroidManifest changes”Add a <queries> block so Meta apps can be resolved:
<?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>Config value
Section titled “Config value”The module requires AffiseConfig.FB_APP_ID (src/settings/AffiseConfig.ts:1-3):
Affise .settings({ affiseAppId: '...', secretKey: '...' }) .setConfigValue(AffiseConfig.FB_APP_ID, 'YOUR_FB_APP_ID') .start();See optional setup.
Providers contributed
Section titled “Providers contributed”From src/parameters/ProviderType.ts:109:
META