Zum Inhalt springen

KI-gestützte Integration

Verwenden Sie KI-Programmierassistenten, um das Pushwoosh Cordova-Plugin in Ihrem Projekt zu integrieren und zu konfigurieren. Indem Sie Ihren Assistenten mit dem Context7 MCP-Server verbinden, erhält er Zugriff auf aktuelle Plugin-Dokumentation, Codebeispiele und API-Referenzen – so kann er präzisen, funktionierenden Integrationscode generieren.

Wie es funktioniert

Anchor link to

Context7 ist ein MCP-Server, der KI-Assistenten aktuelle Bibliotheksdokumentationen zur Verfügung stellt. Wenn Ihr Assistent Zugriff auf Context7 hat, kann er die neuesten Dokumente, Code-Snippets und API-Referenzen des Pushwoosh Cordova-Plugins direkt während des Gesprächs abrufen – anstatt sich auf potenziell veraltete Trainingsdaten zu verlassen.

Die Bibliotheks-ID des Pushwoosh Cordova-Plugins auf Context7 lautet: /pushwoosh/pushwoosh-phonegap-plugin

Context7 einrichten

Anchor link to

Fügen Sie Context7 zur MCP-Konfiguration Ihres KI-Assistenten hinzu:

Führen Sie den folgenden Befehl aus:

Terminal window
claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY

Beispiel-Prompts

Anchor link to

Sobald Context7 konfiguriert ist, können Sie Prompts in natürlicher Sprache verwenden, um das Plugin zu integrieren. Nachfolgend finden Sie sofort einsatzbereite Prompts für gängige Aufgaben.

Grundlegende Plugin-Integration

Anchor link to
Integrate Pushwoosh Cordova plugin into my Cordova project.
Requirements:
- Install pushwoosh-cordova-plugin via cordova plugin add
- Initialize Pushwoosh with my App ID in onDeviceReady
- Register for push notifications and handle push-receive and push-notification events
Use Context7 MCP to fetch Pushwoosh Cordova plugin documentation.

Handhabung von Push-Benachrichtigungen

Anchor link to
Show me how to handle push notification callbacks (receive, open) with
Pushwoosh Cordova plugin. I want to process push payload data and navigate
to specific pages based on custom data.
Use Context7 MCP to fetch Pushwoosh Cordova plugin documentation for push event handling.

Benutzersegmentierung mit Tags

Anchor link to
Show me how to use Pushwoosh tags for user segmentation in a Cordova app.
I need to set tags, get tags, and set user ID for cross-device tracking.
Use Context7 MCP to fetch Pushwoosh Cordova plugin documentation for setTags and getTags.

Was der KI-Assistent erhält

Anchor link to

Wenn Ihr Assistent Context7 nach dem Pushwoosh Cordova-Plugin abfragt, erhält er:

  • Installationsanweisungen – Plugin-Installation und plattformspezifische Einrichtung
  • API-Referenz – öffentliche Methoden, Ereignisse und Callback-Signaturen
  • Codebeispiele – JavaScript-Snippets für gängige Anwendungsfälle
  • Ereignisdokumentation – push-receive, push-notification und andere Event-Handler
  • Konfigurationsdetails – Plugin-Variablen, plattformspezifische Einstellungen und Berechtigungen