zendeskApi('messenger', 'open'), zendeskApi('webWidget', 'open') and zendeskApi('webWidget', 'hide') not working
Hi Zendesk Team and Community,
I am trying to use these zendeskApi('messenger', 'open'),
zendeskApi('webWidget', 'open') and zendeskApi('webWidget', 'hide') but it is totally unresponsive in React.
Please advise and thanks!
Hi Alistair! Could you provide some more details here? Are you trying to make a React wrapper for the widget or are you adding the widget to a React page? Are you seeing any console errors? Any additional details that you can provide will be helpful.
Hi Greg, trying to add it as a pop up. So when I click on a button, I want the widget to appear. When clicked on, it either says Zendesk component has not been initialised or after initialising, no error is found.
To clarify, you mention that after it's initialized, no error is found, but there are initialization errors. So it sounds like you're running this function before the widget has initialized on the page. I would recommend taking a look at these docs to get an idea of how to get it setup, even though that isn't in React, the rest is generally the same.
댓글을 남기려면 로그인하세요.