การผสานรวมโดยใช้ AI ช่วย
ใช้ผู้ช่วยเขียนโค้ด AI เพื่อผสานรวมและกำหนดค่า Pushwoosh iOS SDK ในโปรเจกต์ของคุณ เมื่อเชื่อมต่อผู้ช่วยของคุณกับเซิร์ฟเวอร์ Context7 MCP ผู้ช่วยจะสามารถเข้าถึงเอกสารประกอบ SDK, ตัวอย่างโค้ด และการอ้างอิง API ที่เป็นปัจจุบันได้ ซึ่งจะช่วยให้สามารถสร้างโค้ดการผสานรวมที่ถูกต้องและใช้งานได้
ทำงานอย่างไร
Anchor link toContext7 คือเซิร์ฟเวอร์ MCP ที่ให้เอกสารประกอบไลบรารีที่เป็นปัจจุบันแก่ผู้ช่วย AI เมื่อผู้ช่วยของคุณเข้าถึง Context7 ได้ ก็จะสามารถดึงเอกสาร Pushwoosh iOS SDK, ตัวอย่างโค้ด และการอ้างอิง API ล่าสุดได้โดยตรงระหว่างการสนทนา แทนที่จะต้องพึ่งพาข้อมูลการฝึกที่อาจล้าสมัย
ID ไลบรารี Pushwoosh iOS SDK บน Context7 คือ: /pushwoosh/pushwoosh-ios-sdk
การตั้งค่า Context7
Anchor link toเพิ่ม Context7 ไปยังการกำหนดค่า MCP ของผู้ช่วย AI ของคุณ:
รันคำสั่งต่อไปนี้:
claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEYเพิ่มไปยังไฟล์กำหนดค่า MCP ของคุณ (.cursor/mcp.json หรือเทียบเท่า):
{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@latest"] } }}ตัวอย่าง prompt
Anchor link toเมื่อกำหนดค่า Context7 เรียบร้อยแล้ว คุณสามารถใช้ prompt ภาษาธรรมชาติเพื่อผสานรวม SDK ได้ ด้านล่างนี้คือ prompt ที่พร้อมใช้งานสำหรับงานทั่วไป
การผสานรวม SDK พื้นฐาน
Anchor link toIntegrate Pushwoosh iOS SDK into my iOS project using Swift Package Manager.
Requirements:- Add SPM dependency from https://github.com/Pushwoosh/Pushwoosh-XCFramework- Configure Info.plist with Pushwoosh App ID: YOUR_APP_ID- Register for push notifications in AppDelegate
Use Context7 MCP to fetch Pushwoosh iOS SDK documentation.การจัดการ Push notification
Anchor link toShow me how to handle push notification callbacks (receive, open) withPushwoosh SDK in iOS. I want to implement PWMessagingDelegate and addanalytics tracking for these events.
Use Context7 MCP to fetch Pushwoosh iOS SDK documentation for PWMessagingDelegate.การแบ่งกลุ่มผู้ใช้ด้วย Tag
Anchor link toShow me how to use Pushwoosh tags for user segmentation in iOS.Create example helper class with methods for setting and getting tags.
Use Context7 MCP to fetch Pushwoosh iOS SDK documentation for setTags and getTags.สิ่งที่ผู้ช่วย AI ได้รับ
Anchor link toเมื่อผู้ช่วยของคุณสอบถาม Context7 เกี่ยวกับ Pushwoosh iOS SDK จะได้รับข้อมูลต่อไปนี้:
- คำแนะนำในการติดตั้ง — การตั้งค่า SPM และ CocoaPods
- การอ้างอิง API — public class, method, property และ protocol
- ตัวอย่างโค้ด — ตัวอย่างโค้ด Swift และ Objective-C สำหรับกรณีการใช้งานทั่วไป
- เอกสารประกอบโมดูล — คู่มือสำหรับแต่ละโมดูลของ SDK (VoIP, Live Activities, Geozones ฯลฯ)
- รายละเอียดการกำหนดค่า — การตั้งค่า key ของ Info.plist, entitlement และ capability