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