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

การผสานรวมโดยใช้ AI ช่วย

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

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

Anchor link to

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

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

การตั้งค่า Context7

Anchor link to

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

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

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

ตัวอย่างพรอมต์

Anchor link to

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

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

Anchor link to
Integrate Pushwoosh Android SDK into my Android project with Firebase Cloud Messaging (FCM).
Requirements:
- Add gradle dependencies (pushwoosh, pushwoosh-firebase)
- Configure AndroidManifest.xml with Pushwoosh App ID: YOUR_APP_ID
- Register for push notifications in MainActivity
Use Context7 MCP to fetch Pushwoosh Android SDK documentation.

การจัดการ Push notification

Anchor link to
Show me how to handle push notification callbacks (receive, open) with
Pushwoosh SDK in Android. I want to add analytics tracking for these events.
Use Context7 MCP to fetch Pushwoosh Android SDK documentation for NotificationServiceExtension.

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

Anchor link to
Show me how to use Pushwoosh tags for user segmentation in Android.
Create example helper class with methods for setting and getting tags.
Use Context7 MCP to fetch Pushwoosh Android SDK documentation for setTags and getTags.

สิ่งที่ผู้ช่วย AI ได้รับ

Anchor link to

เมื่อผู้ช่วยของคุณสอบถาม Context7 เกี่ยวกับ Pushwoosh Android SDK จะได้รับ:

  • คำแนะนำในการติดตั้ง — การพึ่งพาของ Gradle และการกำหนดค่า manifest
  • ข้อมูลอ้างอิง API — public classes, methods และ interfaces
  • ตัวอย่างโค้ด — snippets ของ Java และ Kotlin สำหรับกรณีการใช้งานทั่วไป
  • เอกสารโมดูล — คู่มือสำหรับแต่ละโมดูลของ SDK (Firebase, Huawei, Geozones ฯลฯ)
  • รายละเอียดการกำหนดค่า — การตั้งค่า AndroidManifest.xml, การตั้งค่า Firebase และ permissions