How to customize message on Intercom for Cordova & Phonegap | Community
Skip to main content
Answer

How to customize message on Intercom for Cordova & Phonegap

  • May 30, 2021
  • 1 reply
  • 33 views

Hey, i want to send my user a custom message, on web it is with 'showNewMessage

' and the custom message.

if i want to do the same thing but on Intercom for Cordova & Phonegap, is there a way to do so?

Best answer by Eric Fitz

Hey @user1122​, I can see that you've been chatting with our Support team about this, too!

 

Here's some sample code that will show you how to show a custom message:

 

document.getElementById("launch-messenger-btn").addEventListener("click", function(){ intercom.displayMessageComposerWithInitialMessage("here is a sample message");

}, false);

1 reply

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • Answer
  • June 1, 2021

Hey @user1122​, I can see that you've been chatting with our Support team about this, too!

 

Here's some sample code that will show you how to show a custom message:

 

document.getElementById("launch-messenger-btn").addEventListener("click", function(){ intercom.displayMessageComposerWithInitialMessage("here is a sample message");

}, false);