Android Question First steps in using webview.. Is it possible to integrate chatbase inside the app using the iframe?

ema01

Active Member
Licensed User
Longtime User
Hello,
First, i have absolutely zero experience in whatever web programming. A customer is asking if we can integrate their chatbot inside their app.
They use Chatbase and they provide a link we can open in any browser, or embed in a webpage using an iframe.

I did two tests: first was to create an intent to open the website. It works, but it opens the browser. They would like it better if we could integrate it inside the app, so for the second test i added a webview to the layout and set it to load the chatbot url.
For a split second i can see it loads the page, but then it goes all black, and shows "Application error: a client-side exception has occurred (see the browser console for more information)"

Do you have any idea what i should be looking at, or for? (I did a very breaf search for "chatbase inside webview", or for the error message, but it didn't return useful links)

TIA
 

drgottjr

Expert
Licensed User
Longtime User
in general, the only way to debug a webview is by addding a webchromclient to your webview.
that will work if the error is passed to the console. that is not guaranteed in this case, however.

you should post your code (it's not fair to expect us to work blindly). at the very least, we need to
have the link so that we can test. otherwise, you can add webviewextras to your project to obtain
a webchromeclient. many examples on the forum.
 
Upvote 0

ema01

Active Member
Licensed User
Longtime User
you should post your code (it's not fair to expect us to work blindly).
obviously!
I did not post code because it was literally just a webview.LoadUrl

Thanks for the pointer about webviewextras/webchromeclient, will look into that
 
Upvote 0
Top