livechat / chat-window-android

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

Issue Loading Chat #48

Closed Mastersam07 closed 4 years ago

Mastersam07 commented 4 years ago

I am trying to integrate the android chat widget in my android app. I keep getting the error below on my debug console.

I/ChatWindowView(19296): onConsoleMessageERROR Uncaught TypeError: undefined is not a function
I/chromium(19296): [INFO:CONSOLE(1)] "Uncaught TypeError: undefined is not a function", source: https://cdn.livechatinc.com/widget/static/js/iframe.eecfb93e.chunk.js (1)

Attached below are screenshots of the chat window initialized, error when I try to type and send a message, debug console showing the error in that order.

Screenshot_1598438099 Screenshot_1598438109 Screenshot (514)

Mastersam07 commented 4 years ago

I'll close this issue as I found a workaround.

MichaelHackett commented 4 years ago

@Mastersam07: Please share your workaround. We're seeing the same issue.

Mastersam07 commented 4 years ago

Okay @MichaelHackett, Let me ask these questions. Are you on an emulator? Are you using flutter or native java?

SzymonGrochowiak commented 3 years ago

@Mastersam07 I am facing the same problem: I/chromium: [INFO:CONSOLE(1)] "Uncaught TypeError: undefined is not a function", source: https://cdn.livechatinc.com/widget/static/js/iframe.ea2729da.chunk.js (1) Testing on emulator. I use Kotlin.

Mastersam07 commented 3 years ago

The issue seems to be particular with emulators. I tested on an actual device and everything works well.

SzymonGrochowiak commented 3 years ago

Ok, I will try to test with some real device then. Thank you.

Mastersam07 commented 3 years ago

👍

MichaelHackett commented 3 years ago

@Mastersam07: It was a while ago now, but I'm usually working on emulators, so that is likely the case. If/when I come back to that feature, I will keep the emulator issue in mind and get QA to test on physical devices. Thanks!

Still, I remain curious as to the cause. I can't think of another case where an emulator has behaved differently than a device (when there's no hardware feature being accessed), except when there's a race condition being created, or an unsupported function is being used.