跳过内容

iOS Attribution

GitHub

苹果公司不提供一个通用的 App Store 安装referrer等价于Google Play Install Referrer。 在 iOS 上,这个插件使用 Apple AdServices 属性。

默认情况下, getReferrer() 返回一个 AdServices 属性令牌,您可以将其发送到您的后端或移动测量伙伴。

const result = await InstallReferrer.getReferrer();
console.log(result.attributionToken);

原生苹果属性查找

标题:原生苹果属性查找

此插件还可以将令牌发送到苹果的 AdServices 端点,从原生 code。

const result = await InstallReferrer.getReferrer({
fetchAppleAttribution: true,
});
console.log(result.appleAttribution);

在应用本身接收苹果属性载荷时使用此模式。请在您的后端或属性提供商交换令牌时设置为 false。 fetchAppleAttribution 返回的字段

标题:返回的字段

字段
描述Native Apple Attribution Lookup
platform始终 ios.
attributionTokenApple AdServices 属性令牌。
appleAttribution当 fetchAppleAttribution 为 true 时的可选 Apple 属性载荷。
  • Apple AdServices 属性令牌可用于 iOS 14.3 及更高版本。
  • 属性载荷涵盖 Apple 搜索广告属性,而不是任意 App Store 引荐 URL。
  • 仅为了请求 AdServices 属性令牌,不需要 App 跟踪透明度提示。

如果您正在使用 iOS 属性追踪 为计划原生插件工作,连接它 使用 @capgo/capacitor-install-referrer 使用 @capgo/capacitor-install-referrer Capgo 插件目录 Capgo 插件目录 Capacitor 插件由 Capgo Capacitor 插件由 Capgo 添加或更新插件 添加或更新插件 Ionic 企业插件替代品 Ionic 企业插件替代品