Reopen previous chat sessions in embedded widget without cookies #2227
-
Hi everyone, sorry if my question sounds silly, but I'm new to using LHC and I'm feeling a bit disoriented. I need to embed it inside a mobile app where a single user (visitor) can have multiple chats with multiple operators, so I'm trying to use it in embedded mode with cookies disabled (I'm using Ionic). For testing, I'm using the widget like this:
While reading the documentation, I found the static URL method to reopen old chats using ID and hash, but with the widget I can't seem to find anything similar... Or maybe I'm missing something, because I don't understand why it's so easy with one method and not with the other. I need to use widget mode because I’ll need to listen to events in the future (which, as I understand it, isn’t possible with the iframe/static URL method). Please don’t roast me for my confusion — I’ve only been studying this for two days and I’m working under tight deadlines. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, Well there is no official API to pass chat id or hash from JS directly, but
Related files if you decide replicate pur JS by embeding only react APP itself.
But in order to pass chat id and hash manually via JS let say from your local storage you would need to modify Change by itself is not a complex one... Like one or two hours in total would take... There is always an option to get a paid support just... |
Beta Was this translation helpful? Give feedback.
Commited related changes
e82cb06
Search in this document for
chat_hash
andchat_id
https://doc.livehelperchat.com/docs/javascript-arguments