The site is using the new Zendesk SDK and I need to update the code, but the documentation isn't much help. I open the widget like this:
zE('webWidget', 'reset'); zE('webWidget', 'open');
This is obviously no longer correct
In the console:
Method webWidget.reset does not exist.
Note from Zendesk: API methods associated with the Web Widget (classic) are still executed on the page. The site now uses the new Web SDK (Messaging Experience) and no longer supports these APIs. If you don't plan to use the Web Widget (classic), we recommend that you remove this code from your site. Although this is not recommended, keeping them will not cause any problems. '
Any ideas?
solved So, in fact,
zE('messenger', 'open')
does work, and that's the solution to go for.However,
zE('messenger', 'reset')
is not supported, which is the problem I ran into while testing.I used
zE('messenger', 'close')
instead.