ข้ามไปยังเนื้อหา

การผสานรวมโดยใช้ AI ช่วยเหลือ

ใช้ผู้ช่วยเขียนโค้ด AI เพื่อผสานรวมและกำหนดค่า Pushwoosh iOS SDK ในโปรเจกต์ของคุณ โดยการเชื่อมต่อผู้ช่วยของคุณกับเซิร์ฟเวอร์ Context7 MCP จะทำให้สามารถเข้าถึงเอกสาร SDK ที่เป็นปัจจุบัน ตัวอย่างโค้ด และข้อมูลอ้างอิง API ได้ ซึ่งจะช่วยให้สามารถสร้างโค้ดการผสานรวมที่ถูกต้องและใช้งานได้

วิธีการทำงาน

Anchor link to

Context7 คือเซิร์ฟเวอร์ MCP ที่ให้เอกสารไลบรารีที่เป็นปัจจุบันแก่ผู้ช่วย AI เมื่อผู้ช่วยของคุณเข้าถึง Context7 ได้ ก็จะสามารถดึงเอกสาร Pushwoosh iOS SDK ล่าสุด, code snippets และข้อมูลอ้างอิง API ได้โดยตรงระหว่างการสนทนา แทนที่จะต้องพึ่งพาข้อมูลการฝึกที่อาจล้าสมัย

ID ไลบรารี Pushwoosh iOS SDK บน Context7 คือ: /pushwoosh/pushwoosh-ios-sdk

การตั้งค่า Context7

Anchor link to

เพิ่ม Context7 ไปยังการกำหนดค่า MCP ของผู้ช่วย AI ของคุณ:

รันคำสั่งต่อไปนี้:

Terminal window
claude mcp add context7 -- npx -y @anthropic-ai/context7-mcp@latest

ตัวอย่าง Prompts

Anchor link to

เมื่อตั้งค่า Context7 เรียบร้อยแล้ว คุณสามารถใช้ prompts ภาษาธรรมชาติเพื่อผสานรวม SDK ได้ ด้านล่างนี้คือ prompts ที่พร้อมใช้งานสำหรับงานทั่วไป

การผสานรวม SDK พื้นฐาน

Anchor link to
Integrate 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 to
Show me how to handle push notification callbacks (receive, open) with
Pushwoosh SDK in iOS. I want to implement PWMessagingDelegate and add
analytics tracking for these events.
Use Context7 MCP to fetch Pushwoosh iOS SDK documentation for PWMessagingDelegate.

การแบ่งกลุ่มผู้ใช้ด้วย Tags

Anchor link to
Show 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 classes, methods, properties และ protocols
  • ตัวอย่างโค้ด — snippets ภาษา Swift และ Objective-C สำหรับกรณีการใช้งานทั่วไป
  • เอกสารโมดูล — คู่มือสำหรับแต่ละโมดูลของ SDK (VoIP, Live Activities, Geozones, ฯลฯ)
  • รายละเอียดการกำหนดค่า — keys ของ Info.plist, การตั้งค่า entitlements และ capabilities