Using Intercom widget in Vaddin Framework

Hi All,

Can anyone help me here. I’m new to the Vaadin framework.

What I’m trying to do is add the widget from intercom.com to provide support in my application. I can’t work out how I should go about adding in their widget scripts to the page to get it up and running.

I have tried the Page.getCurrent().getJavaScript().execute() function but that didn’t seem to do anything.

thanks

I have solved it.

For those who would like to know I made us of the BootstrapListener and in my IntercomBootstrapListener I added the scripts to the

service.addSessionInitListener(event → event.getSession() .addBootstrapListener(new IntercomBootstrapListener()));