livechat / chat-window-android

LiveChat mobile chat window for Android
https://developers.livechatinc.com/mobile/android/
MIT License
23 stars 28 forks source link

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

Open variyanirav opened 1 year ago

variyanirav commented 1 year ago

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 commented 1 year ago

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 commented 4 months ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

nomyzs commented 1 month ago

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