@capgo/capacitor-install-referrer exposes install attribution signals through one Capacitor API。
On Android, it reads Google Play Install Referrer details: the raw referrer string, click timestamp, install timestamp, and instant app flag. On iOS, it returns an Apple AdServices attribution token and can optionally call Apple’s AdServices attribution endpoint for Apple Search Ads attribution data。
核心功能
核心功能getReferrer- 返回当前平台的本地安装 attribution 详情。GetReferrer- 已废弃的兼容性别名,用于从Capacitor迁移的应用。cap-play-install-referrer.getPluginVersion- 返回本地插件实现版本标记。- Optional iOS Apple attribution lookup with retry support for delayed AdServices responses。
平台支持
平台支持| 平台 | 支持 |
|---|---|
| Android | Google Play Install Referrer API |
| iOS | Apple AdServices attribution token 和可选的 Apple attribution payload |
| Web | 不支持的占位符 |
公共 API
标题:公共 API| 方法 | 描述 |
|---|---|
getReferrer(options?) | 返回 Android 或 iOS 的安装 attribution 详情 |
GetReferrer(options?) | 已弃用兼容性别名 getReferrer. |
getPluginVersion() | 返回原生插件版本标记。 |
真实来源
标题:真实来源此参考资料是从 src/definitions.ts 在 capacitor-install-referrer.
从@capgo/capacitor-install-referrer继续
标题:从@capgo/capacitor-install-referrer继续如果您正在使用 @capgo/capacitor-install-referrer 规划商店批准和分发,连接它到 使用@capgo/capacitor-install-referrer 使用@capgo/capacitor-install-referrer的原生能力 @capgo/capacitor-in-app-review 在@capgo/capacitor-in-app-review的实现细节中 使用@capgo/capacitor-in-app-review 使用@capgo/capacitor-in-app-review的原生能力 @capgo/capacitor-native-market 在@capgo/capacitor-native-market的实现细节中 使用@capgo/capacitor-native-market 使用@capgo/capacitor-native-market的原生能力