AI 辅助集成
使用 AI 编码助手在您的项目中集成和配置 Pushwoosh Unity SDK。通过将您的助手连接到 Context7 MCP 服务器,它可以访问最新的插件文档、代码示例和 API 参考——从而生成准确、可用的集成代码。
工作原理
Anchor link toContext7 是一个 MCP 服务器,为 AI 助手提供最新的库文档。当您的助手可以访问 Context7 时,它可以在对话期间直接获取最新的 Pushwoosh Unity SDK 文档、代码片段和 API 参考——而不是依赖可能过时的训练数据。
Context7 上的 Pushwoosh Unity SDK 库 ID:/Pushwoosh/pushwoosh-unity
设置 Context7
Anchor link to将 Context7 添加到您的 AI 助手的 MCP 配置中:
运行以下命令:
claude mcp add context7 -- npx -y @anthropic-ai/context7-mcp@latest添加到您的 MCP 配置文件(.cursor/mcp.json 或等效文件):
{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@latest"] } }}示例提示
Anchor link to配置好 Context7 后,您可以使用自然语言提示来集成 SDK。以下是用于常见任务的即用型提示。
基本 SDK 集成
Anchor link toIntegrate Pushwoosh Unity SDK into my Unity project.
Requirements:- Install com.pushwoosh.unity.core and com.pushwoosh.unity.android via UPM- Initialize Pushwoosh with my App ID- Register for push notifications and handle OnPushNotificationsReceived and OnPushNotificationsOpened events
Use Context7 MCP to fetch Pushwoosh Unity SDK documentation.标签和用户分段
Anchor link toShow me how to use Pushwoosh tags in a Unity app for user segmentation.I need to set string, int, and list tags, get tags, and set user ID.
Use Context7 MCP to fetch Pushwoosh Unity SDK documentation for SetStringTag and GetTags.事件和购买跟踪
Anchor link toIntegrate Pushwoosh event tracking in my Unity app. Show me how to:- Post custom events with attributes- Track in-app purchases with SendPurchase
Use Context7 MCP to fetch Pushwoosh Unity SDK documentation for PostEvent.AI 助手获取的内容
Anchor link to当您的助手向 Context7 查询 Pushwoosh Unity SDK 时,它会收到:
- 安装说明 — 通过 npm 注册表和 Git URL 进行 UPM 设置
- API 参考 — 公共类、方法和事件定义
- 代码示例 — 适用于常见用例的 C# 代码片段
- 平台设置 — iOS 和 Android 配置步骤
- 配置详情 — 初始化参数、EDM4U 设置