-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The session is not recovers in the android SDK #188
Comments
Hi @reygie25 and thank you for your feedback. On my side, I use the HTML integration for test purposes, not the npm package, but it should behave the same way as it's only a wrapper. Web<script type="text/javascript">
$crisp=[];
CRISP_WEBSITE_ID=website_id;
CRISP_TOKEN_ID=user_id;
(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();
</script> AndroidCrisp.setWebsiteId(context, website_id);
Crisp.resetChatSession();
Crisp.setTokenID(context, user_id);
startActivity(new Intent(context, ChatActivity.class)); Be sure to call |
Hello @Doc1faux! Thank you for your response. Here's my complete code snippet for Android and yes I always call that
The issue we encountered is intermittent sometimes its working properly but there's a chance we encountered it randomly. Do you have any suggestion about it? |
if you call |
Hi @reygie25, sorry for getting back to you late, About the
I'll check if I got the issue too with a trial website. |
The scenario here is when the web sdk started a session.
Web SDK
To send or initiate a first-time message to a contact or workers (which we call), using the Web SDK, we open the chatbox to generate a session_id which is needed to send the message. Here's our example code:
ANDROID SDK
The text was updated successfully, but these errors were encountered: