Skip to content

@capgo/capacitor-crisp

Crisp Chat SDK Plugin for Capacitor. Provides live chat and customer support functionality through Crisp.chat.

Crisp Chat SDK Plugin for Capacitor. Provides live chat and customer support functionality through Crisp.chat.

  • configure - Configure the Crisp SDK with your website ID. Must be called before using any other methods.
  • openMessenger - Open the Crisp messenger chat window. Shows the chat interface to the user.
  • setTokenID - Set a unique token ID for the current user session. Used to identify and restore previous conversations.
  • setUser - Set user information for the current session. Updates the user profile visible to support agents.
MethodDescription
configureConfigure the Crisp SDK with your website ID. Must be called before using any other methods.
openMessengerOpen the Crisp messenger chat window. Shows the chat interface to the user.
setTokenIDSet a unique token ID for the current user session. Used to identify and restore previous conversations.
setUserSet user information for the current session. Updates the user profile visible to support agents.
pushEventPush a custom event to Crisp. Useful for tracking user actions and behavior.
setCompanySet company information for the current session. Associates the user with a company in Crisp.
setIntSet a custom integer data field. Stores numerical data associated with the user session.
setStringSet a custom string data field. Stores text data associated with the user session.
sendMessageSend a message from the user to the chat. Programmatically send a message as if the user typed it.
setSegmentSet a user segment for targeting and organization. Used to categorize users in the Crisp dashboard.
resetReset the Crisp session. Clears all user data and starts a fresh session. Useful when user logs out.
getPluginVersionGet the plugin version number.

This reference is synced from src/definitions.ts in capacitor-crisp.