Skip to content
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

Live chat showing the "Couldn't load chat" when running application in android #80

Open
variyanirav opened this issue Jun 15, 2023 · 7 comments

Comments

@variyanirav
Copy link

variyanirav commented Jun 15, 2023

I have tried to implement Livechat using this documentation but when I try to start the live chat its showing below error,

Android:
minSdkVersion 21
targetSdkVersion 33

Screenshot_1686829947

Does any one have idea? what I am doing wrong here?

@tosam144
Copy link

I have exactly the same problem. In logcat I see:

onConsoleMessageERROR Uncaught TypeError: t.includes is not a function

[INFO:CONSOLE(2)] "Uncaught TypeError: t.includes is not a function", source: https://cdn.livechatinc.com/widget/static/js/iframe.06561787.chunk.js (2)

Any idea?

@nomyzs
Copy link
Contributor

nomyzs commented Jul 19, 2024

Thanks for reporting, we will look into it.

It's possible, these errors are non-critical and wouldn't prevent the chat from working.

While we look into errors, you can try setting up EventsListener and ignoring some of them by returning true in onError callback. This should prevent "Couldn't load chat." from showing and possibly keep the chat window operational

@marcosfw
Copy link

We are having the same exact issue replicated on Android Native app. Could you please advise if you have a fix planned from Live Chat side as it makes the Live Chat unusable for our clients

@nomyzs
Copy link
Contributor

nomyzs commented Oct 10, 2024

Hey!
We’re currently unaware of any errors that would prevent the chat window from functioning. Some errors you are experiencing may be device/network specific and non-critical. Here’s what you can try:

Set up eventsListener
Log errors from onError callback
Return true to indicate an error has been handled - this will prevent the "Couldn't load chat" view from showing and making the chat window hidden.

Please let us know if that helps and what errors/warnings you see.

@Qingx
Copy link

Qingx commented Oct 10, 2024

Hi @nomyzs may I ask how can i set up the eventsListener when using the ChatWindowActivity?

@nomyzs
Copy link
Contributor

nomyzs commented Oct 10, 2024

Currently, that is not possible. You would have to use one of the approaches described here.
ChatWindowActivity and ChatWindowFragment have limited capabilities

@nomyzs
Copy link
Contributor

nomyzs commented Nov 29, 2024

Hello!

We've just released a new version (v2.4.5) that aims to address an issue with error views being displayed unnecessarily in the ChatWindowActivity and ChatWindowFragment components. It should also limit cases of onError callback firing unnecessarily.

Given the wide variety of devices, it's challenging to account for every possible exception, so we'd really appreciate it if you could try out the update and let us know whether it resolves the issue. If you encounter any exceptions that are either wrongly ignored or incorrectly reported, please do share your feedback with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants