livechat / chat-window-android

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

using Mobile Chat Widget for Android App Often show “Couldn\'t load chat.” #22

Closed Jerrychengjun closed 4 years ago

Jerrychengjun commented 5 years ago

If I don't use livechat for 2 or 3 minutes in my App, It will shows "Couldn\'t load chat."

The Website tells me that I can change the error message,But that's not what I need. LiveChat Docs

Couldn\'t load chat.

I need to catch exception events,and complete retry function livechat_error

ZiggyKraus commented 5 years ago

Hello @Jerrychengjun !

Thank you for reporting this problem! I will consult this case with our Android developer, and we will get back to you as soon as we have an update. We will also reach out in case of any additional questions that will help us with checking out why the chat couldn't be loaded on your Android application.

nomyzs commented 5 years ago

Hey @Jerrychengjun ! Hope you're doing well. What do you think about the following changes: https://github.com/livechat/chat-window-android/commit/115834d48745b71dc14b33d06375280445c5d4b9 Basically adding an onError function to chat window listener and passing there errors from WebView.

Will that suite your needs? Any feedback on that?

bernardocampos commented 5 years ago

I'm also having this issue. @Jerrychengjun did @nomyzs 's fix work for you?

sagkissht commented 5 years ago

I am facing similar issue and it's quite intermittent. Please can you solve it asap Screenshot_2019-07-05-12-06-35-710_com fastbanking

nomyzs commented 4 years ago

Please check out v2.1.0. This should help with the problem above. The changes should also allow you to take full control of showing errors. Hope it helps 🤞