fransiska.hendra | 2023-06-13 10:35:12 UTC | #1
Hi ,
Just wondering if anyone can help ? We are using webmessaging.
In the webmessaging widget, we ended chat by clearing cookies / session of "gcm", and this is really worked, it clearing chat history at the customer side
var values = [], keys = Object.keys(localStorage), i = keys.length; while ( i-- ) { if(keys[i].indexOf('gcm')>0){ localStorage.removeItem(keys[i]); } }
but the issue is although chat history is disappeared, it doesnt ended chat at Genesys Cloud agent side, as following:
Is there any way to end chat at agent side, if customer widget clearing cache/session ?
thanks Fransiska
IvanDg | 2023-06-13 23:47:58 UTC | #3
Oops I completely misread it. I deleted my previous reply.
Deleting cookies is just deleting the session on the user perspective but not on the agent perspective. So unless you send a signal from the end user to the agent, there is no way to know that chat ended after deleting cookies.
But the following feature will allow end users to disconnect. But it is is being developed so you can track this one and maybe vote. Web Messaging - End-User can | Genesys Cloud Ideas Portal (aha.io)
fransiska.hendra | 2023-06-14 03:58:27 UTC | #4
hi @IvanDg,
thanks for sharing about this
Fransiska
system | 2023-07-14 03:58:34 UTC | #5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20403