Migrate Zendesk from Web Widget (Classic) to Messaging Web Widget SDK
P粉860897943
P粉860897943 2024-02-21 10:59:11
0
1
512

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?

P粉860897943
P粉860897943

reply all(1)
P粉940538947

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!