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:
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.