在 iOS SDK 中处理 ATT
安装 AI Agent 工具
在你的 AI 编程工具中完成整个 Adapty SDK 集成。 了解更多
claude plugin marketplace add adaptyteam/adapty-skills
claude plugin install adapty-skills@adapty
git clone https://github.com/adaptyteam/adapty-skills.git
cp -r adapty-sdk-integration-skill/skills/* ~/.copilot/skills/
gemini skills install https://github.com/adaptyteam/adapty-skills
git clone https://github.com/adaptyteam/adapty-skills.git
cp -r adapty-sdk-integration-skill/skills/* ~/.agents/skills/
可安装到任何支持技能的 AI 工具。之后更新请运行 npx skills update。
npx skills add adaptyteam/adapty-skills --all
安装后,在你的项目中运行该技能:
/adapty-integration
如果您的应用程序使用了 AppTrackingTransparency 框架,并向用户呈现了应用追踪授权请求,则您应将授权状态发送给 Adapty。
let builder = AdaptyProfileParameters.Builder()
.with(appTrackingTransparencyStatus: .authorized)
do {
try await Adapty.updateProfile(params: builder.build())
} catch {
// handle the error
} if #available(iOS 14, macOS 11.0, *) {
let builder = AdaptyProfileParameters.Builder()
.with(appTrackingTransparencyStatus: .authorized)
Adapty.updateProfile(params: builder.build()) { [weak self] error in
if error != nil {
// handle the error
}
}
} Warning
我们强烈建议您在该值发生变化时尽早发送,只有这样,数据才能及时传送到您已配置的集成渠道。