How to open live chat window immediately without showing launcher button.

Hi ,

I’m using the live chat api to open the chat window using a custom button in my Ionic/Angular application.

For desktop works ok, because when I click on the custom open button the chat window is displayed fine.

But on mobile devices when I click on the open chat button, the app first opens the launcher and then I need to click on the launcher to open the chat window, but what I really need is to open right away (just like how it works on the desktop version)

I’m trying to use these two methods, but it’s not working the way I need:

window.HubSpotConversations.widget.load({ widgetOpen: true });

window.HubSpotConversations.widget.open();

Any ideias on how I could do that?

Regards!

@piersg , @John , @webdew , any of you ever mess around with this?

Hi guys!

I found the #hs-chat-open in the related subjects and works like charm.

https://community.hubspot.com/t5/APIs-Integrations/Opening-live-chat-via-javascript/m-p/248318

Thanks

To use live chat for your Menu item – follow next steps:
Copy the third code of this option. It will look like this – #lcsShowChat_1.
Go to Appearance → Menus.
In Menu Structure choose item and paste code into the “Title Attribute” field.
Save menu changes.

Regards,

Will