I need to obtain the ongoing conversation ID at the page level since I have configured Omnichannel in our web application. To do that, I created some code and an Omnichannel SDK predefined event, the code for which is provided below.
window.addEventListener("lcw:onMessageReceived", function handleWidgetMessageReceivedEvent(payload){
alert("OnMessageRecieved"+ payload.detail.conversationId);
// Handle the live chat widget message sent event
});
We don't receive any conversation-related information when we start a chat, but when we refresh the page in the browser, data starts to appear. When we start a chat, we don't get any conversation-related information, but when we refresh the page in the browser, information starts to appear.
If you have any further questions, kindly let me know.
Thank you...


Report
All responses (
Answers (