iOS 属性追踪
复制一个配置提示,包含安装步骤和此插件的完整 Markdown 指南。
Apple AdServices
标题为“Apple AdServices”苹果公司不提供一个通用的 App Store 安装referrer 等价于 Google Play Install Referrer。 在 iOS 上,这个插件使用 Apple AdServices 属性。
默认情况下, getReferrer() 返回一个 AdServices 属性令牌,您可以将其发送到您的后端或移动测量伙伴。
const result = await InstallReferrer.getReferrer();console.log(result.attributionToken);原生苹果属性查找
Native Apple Attribution Lookup该插件也可以将令牌发送到Apple的AdServices端点,从本机code。
const result = await InstallReferrer.getReferrer({ fetchAppleAttribution: true,});
console.log(result.appleAttribution);在应用程序本身接收Apple的属性载荷时使用此模式。请记住 fetchAppleAttribution 当您的后端或属性提供商交换令牌时,请设置为false。
返回的字段
返回的字段| 字段 | 描述 |
|---|---|
platform | 始终 ios. |
attributionToken | Apple AdServices属性令牌。 |
appleAttribution | 可选的Apple属性载荷。 fetchAppleAttribution 是 true。 |
需求
标题:需求- 在 iOS 14.3 和更高版本中,Apple AdServices 属性令牌可用。
- 属性载荷涵盖 Apple Search Ads 属性,而不是任意 App Store 引荐 URL。
- 不需要仅为了请求 AdServices 属性令牌而显示 App 跟踪透明度提示。
从 iOS 属性继续
标题:从 iOS 属性继续如果您正在使用 iOS 属性 来规划原生插件工作,连接它与 使用 @capgo/capacitor-install-referrer 为 @capgo/capacitor-install-referrer 原生能力使用 Capgo 插件目录 为 Capgo 插件目录中的产品流程 Capacitor 由 Capgo 提供的插件 为 Capacitor 由 Capgo 提供的插件中的实现细节 添加或更新插件 为添加或更新插件中的实现细节 Ionic 企业插件替代方案 为 Ionic 企业插件替代方案中的产品流程