You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate the Pushwoosh React Native plugin using AI coding assistants (Claude Code, Cursor, GitHub Copilot, etc.).
Requirement: Your AI assistant must have access to Context7 MCP server or web search capabilities.
Quick Start Prompts
Choose the prompt that matches your task:
1. Basic Plugin Integration
Integrate Pushwoosh React Native plugin into my React Native project.
Requirements:
- Install pushwoosh-react-native-plugin via npm
- Initialize Pushwoosh with my App ID in the app entry point
- Register for push notifications and handle pushOpened events via DeviceEventEmitter
Use Context7 MCP to fetch Pushwoosh React Native plugin documentation.
2. Tags and User Segmentation
Show me how to use Pushwoosh tags in a React Native app for user segmentation.
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.
3. Message Inbox Integration
Integrate Pushwoosh Message Inbox into my React Native app. Show me how to:
- Display the inbox UI with custom styling
- Load messages programmatically
- Track unread message count
Use Context7 MCP to fetch Pushwoosh React Native plugin documentation for presentInboxUI.
Quick Start
1. Initialize the Plugin
importPushwooshfrom'pushwoosh-react-native-plugin';import{DeviceEventEmitter}from'react-native';// Listen for push notification eventsDeviceEventEmitter.addListener('pushOpened',(e)=>{console.log("Push opened: "+JSON.stringify(e));});// Initialize PushwooshPushwoosh.init({pw_appid: "YOUR_PUSHWOOSH_APP_ID",project_number: "YOUR_FCM_SENDER_ID"});// Register for push notificationsPushwoosh.register((token)=>{console.log("Registered with push token: "+token);},(error)=>{console.error("Failed to register: "+error);});
2. Set User Tags
importPushwooshfrom'pushwoosh-react-native-plugin';Pushwoosh.setTags({username: "john_doe",age: 25,interests: ["sports","tech"]},()=>console.log("Tags set successfully"),(error)=>console.error("Failed to set tags: "+error));Pushwoosh.getTags((tags)=>console.log("Tags: "+JSON.stringify(tags)),(error)=>console.error("Get tags error: "+error));
importPushwooshfrom'pushwoosh-react-native-plugin';import{processColor,Image}from'react-native';// Open inbox UI with custom stylingPushwoosh.presentInboxUI({dateFormat: "dd.MM.yyyy",accentColor: processColor('#3498db'),backgroundColor: processColor('#ffffff'),titleColor: processColor('#333333'),descriptionColor: processColor('#666666'),listEmptyMessage: "No messages yet"});// Or load messages programmaticallyPushwoosh.loadMessages((messages)=>{messages.forEach((msg)=>{console.log(msg.title+": "+msg.message);});},(error)=>console.error("Failed to load: "+error));Pushwoosh.unreadMessagesCount((count)=>{console.log("Unread messages: "+count);});