Android Referrer
复制安装指南
Google Play 安装来源
在 Android 上连接到 Google Play 安装来源服务并从 Play Store 安装记录中获取数据 getReferrer() Google Play 安装来源服务
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 企业插件替代品中的产品流程