Recent searches
No recent searches
Zendesk Web Widget API problem
Posted Feb 15, 2023
I am using Messaging web widget by importing it on my web page.
And I also use the "loginUser" and "open" APIs together to open the messaging window after the user logs in.(https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/web/sdk_api_reference/#login)
Specifically, I am calling "zE('messenger', 'loginUser',..."
and immediately after that, "zE('messenger', 'open')"
to achieve this.
this is code for it
zE('messenger', 'loginUser', function (callback) {
callback(token); zE('messenger', 'open'); });
However, when I make both API calls, the messaging window only displays a loading spinner and does not show any chat content.
I want to use the web widget properly when using both APIs.
0
5
5 comments
Tipene Hughes
Hey kim eudd,
Thanks for reaching out!
I've tested this on my end and I have been able to replicate the behaviour. Our product team is taking a look to see what might be causing this. As a workaround, you can wrap the zE('messenger', 'open') method in a setTimeout function and that should mitigate the problem.
I'll update you in this thread once I have more information.
Thanks!
Tipene
0
Tipene Hughes
Hi kim eudd,
A fix has been rolled out for this issue. Can you confirm that everything is now working as anticipated on your end without the use of the workaround?
0
kim eudd
Hi,
it is still same happened.
no contents on widget at all but only displayed spinner.
0
Boris Ozegovic
Hey, Zendesk!
We also have this issue in production. Randomly, rarely, the messenger spinner hangs.
We like to offer an alternative, when this happens, we wanna inform people to reach out via email.
Can you please emit a 'ready' event when the spinner is over and messages are visible?
0
Greg Katechis
Hi Boris! Would you mind submitting this feedback request in this forum? This will ensure that the right teams have visibility into it and can follow up with you directly if they have any questions. Also, take a look at the feedback guidelines post at the top to ensure that it has all the necessary information captured.
0