Hi, how do I embedd this snippet on one of my mobile pages to enable live chat? I tried to add a Javascipt element to a onready action but it does not seem to work? The intructions from freshchat are to:
function initFreshChat() {
window.fcWidget.init({
token: "XXX",
host: "https://wchat.freshchat.com"
});
}
function initialize(i,t){var e;i.getElementById(t)?initFreshChat():((e=i.createElement("script")).id=t,e.async=!0,e.src="https://wchat.freshchat.com/js/widget.js",e.onload=initFreshChat,i.head.appendChild(e))}function initiateCall(){initialize(document,"Freshdesk Messaging-js-sdk")}window.addEventListener?window.addEventListener("load",initiateCall,!1):window.attachEvent("load",initiateCall,!1);
Hey @Fadi Zananiri ,
Have you tried working with firebase instead?https://www.outsystems.com/forge/component-overview/1406/firebase