跳过内容

@capgo/capacitor-install-referrer

从Capacitor中读取Android Play安装引导数据和iOS Apple AdServices属性令牌

@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。

平台支持

平台支持
平台支持
AndroidGoogle Play Install Referrer API
iOSApple AdServices attribution token 和可选的 Apple attribution payload
Web不支持的占位符
方法描述
getReferrer(options?)返回 Android 或 iOS 的安装 attribution 详情
GetReferrer(options?)已弃用兼容性别名 getReferrer.
getPluginVersion()返回原生插件版本标记。

此参考资料是从 src/definitions.tscapacitor-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的原生能力