跳过内容

Android Referrer

GitHub

Google Play Install Referrer

Google Play Install Referrer

在Android上 getReferrer() 连接到Google Play Install Referrer服务,并从Play Store安装记录中获取数据。

const result = await InstallReferrer.getReferrer();
console.log(result.referrer);
console.log(result.clickTimestampSeconds);
console.log(result.installBeginTimestampSeconds);
console.log(result.googlePlayInstantParam);
字段描述
platform始终 android.
referrer原始Play安装引荐字符串。
clickTimestampSeconds客户端引荐点击时间戳(秒)
installBeginTimestampSeconds客户端安装开始时间戳(秒)
googlePlayInstantParam用户是否启动了应用的即时体验
  • 必须从 Google Play 安装应用程序以获取真实的安装引荐数据。
  • 设备必须具有支持 Install Referrer 服务的 Play Store 版本。
  • 不需要 Android 运行时权限。

错误情况

错误情况

插件拒绝使用时:Play Store 服务不可用、不支持、断开连接之前返回结果或返回意外响应。

继续阅读 Android 引荐

继续阅读 Android 引荐

如果您正在使用 Android 引荐 来规划原生插件工作,连接它与 使用 @capgo/capacitor-install-referrer 为使用@capgo/capacitor-install-referrer的原生能力 Capgo 插件目录 为Capgo 插件目录中的产品工作流程 Capacitor 由Capgo提供的插件 为Capacitor 由Capgo提供的插件中的实现细节 添加或更新插件 为添加或更新插件中的实现细节,并且 Ionic企业插件替代品 为Ionic企业插件替代品中的产品工作流程