การผสานรวมโดยใช้ AI ช่วยเหลือ
ใช้ผู้ช่วยเขียนโค้ด AI เพื่อผสานรวมและกำหนดค่าปลั๊กอิน Pushwoosh React Native ในโปรเจกต์ของคุณ โดยการเชื่อมต่อผู้ช่วยของคุณกับเซิร์ฟเวอร์ Context7 MCP จะทำให้สามารถเข้าถึงเอกสารปลั๊กอินล่าสุด ตัวอย่างโค้ด และข้อมูลอ้างอิง API ได้ ซึ่งจะช่วยให้สามารถสร้างโค้ดการผสานรวมที่ถูกต้องและใช้งานได้
การทำงาน
Anchor link toContext7 คือเซิร์ฟเวอร์ MCP ที่ให้เอกสารไลบรารีล่าสุดแก่ผู้ช่วย AI เมื่อผู้ช่วยของคุณเข้าถึง Context7 ได้แล้ว จะสามารถดึงเอกสารปลั๊กอิน Pushwoosh React Native ล่าสุด, code snippets และข้อมูลอ้างอิง API ได้โดยตรงระหว่างการสนทนา แทนที่จะต้องพึ่งพาข้อมูลการฝึกอบรมที่อาจล้าสมัย
ID ไลบรารีของปลั๊กอิน Pushwoosh React Native บน Context7 คือ: /pushwoosh/pushwoosh-react-native-plugin
การตั้งค่า Context7
Anchor link toเพิ่ม Context7 ไปยังการกำหนดค่า MCP ของผู้ช่วย AI ของคุณ:
รันคำสั่งต่อไปนี้:
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"] } }}ตัวอย่าง Prompts
Anchor link toเมื่อตั้งค่า Context7 เรียบร้อยแล้ว คุณสามารถใช้ prompts ภาษาธรรมชาติเพื่อผสานรวมปลั๊กอินได้ ด้านล่างนี้คือ prompts ที่พร้อมใช้งานสำหรับงานทั่วไป
การผสานรวมปลั๊กอินพื้นฐาน
Anchor link toIntegrate Pushwoosh React Native plugin into my React Native project.
Requirements:- Install pushwoosh-react-native-plugin via npm- Initialize Pushwoosh with my App ID in App component- Register for push notifications and handle pushReceived and pushOpened events
Use Context7 MCP to fetch Pushwoosh React Native plugin documentation.การจัดการ Push Notification
Anchor link toShow me how to handle push notification callbacks (receive, open) withPushwoosh React Native plugin. I want to process push payload data andnavigate to specific screens based on custom data.
Use Context7 MCP to fetch Pushwoosh React Native plugin documentation for push event handling.การแบ่งกลุ่มผู้ใช้ด้วย Tags
Anchor link toShow me how to use Pushwoosh tags for user segmentation in a React Native app.I need to set tags, get tags, and set user ID for cross-device tracking.
Use Context7 MCP to fetch Pushwoosh React Native plugin documentation for setTags and getTags.สิ่งที่ผู้ช่วย AI ได้รับ
Anchor link toเมื่อผู้ช่วยของคุณสอบถาม Context7 เกี่ยวกับปลั๊กอิน Pushwoosh React Native จะได้รับ:
- คำแนะนำในการติดตั้ง — การตั้งค่า npm/yarn และการกำหนดค่าเฉพาะแพลตฟอร์ม
- ข้อมูลอ้างอิง API — public methods, event listeners และลายเซ็นของ callback
- ตัวอย่างโค้ด — snippets ภาษา JavaScript และ TypeScript สำหรับกรณีการใช้งานทั่วไป
- เอกสารเกี่ยวกับ Event — ตัวจัดการ event สำหรับ pushReceived, pushOpened และ deep link
- รายละเอียดการกำหนดค่า — พารามิเตอร์การเริ่มต้น, ขั้นตอนการตั้งค่าสำหรับ iOS และ Android