1

I am using Twilio UI 1.8.2 and Twilio Webchat UI 1.2.0, How can I keep expanded the chat window of Twilio Customer Chat Panel if the page is refreshed or open the same page (session) in new tab/page in the browser.

By default, if I refresh the page it is started from minimized.

I am using Twilio's built-in flex (reactjs version) and expanding as my requirements.

1 Answers1

2

Twilio developer evangelist here.

What I would do is hook into the actions framework of the webchat UI, listening for the ToggleChatVisibility action and save the open state of the chat into localStorage. Then when the page loads, load the state from localStorage and invoke the ToggleChatVisibility action if the chat should be open.

Does that help at all?

philnash
  • 70,667
  • 10
  • 60
  • 88