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

SOLVE
Douglas_leve
Member

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!

0 Upvotes
1 Accepted solution

Accepted Solutions
Douglas_leve
Solution
Member

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

 

 

View solution in original post

2 Replies 2
dennisedson
Community Manager

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

Thanks,

Dennis



Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes
Douglas_leve
Solution
Member

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

 

 

View solution in original post