Using CONVAI in a Unity WEBVIEW window for an ANDROID APK App

Original Discord Post by dogbite7172 | 2024-08-31 04:41:40

We have an ANDROID app that runs the WEBGL pages we develop using the UNITY webview function to play the WEBGL screens. We get an error when we trigger the SPACEBAR Push to start the conversation with the character. We assume the CONVAI HTML template does not work in the WEBVIEW Browser function. Is there a workaround for that by adding code to the template?

Images:

Reply by k3kalinix | 2024-08-31 08:40:37

<@368669084952428554>

Reply by saurav0037 | 2024-09-02 12:39:50

<@920428818928386068> Can you specify which version of convai sdk are you using

Reply by dogbite7172 | 2024-09-02 14:01:32

<@1023671043287699568>

Reply by dogbite7172 | 2024-09-02 14:02:28

Where do I find that information?

Reply by saurav0037 | 2024-09-02 19:16:32

<@920428818928386068> are you running it on andriod browser or creating an andriod app all together using the sdk

Reply by dogbite7172 | 2024-09-02 19:18:43

We created an app that plays webgl in the webview window since most mobile browsers do not support webgl but the Webview widows widget does play Webgl

Reply by dogbite7172 | 2024-09-02 19:19:27

Using Unity Webview function

Reply by saurav0037 | 2024-09-02 19:25:36

I see

Reply by saurav0037 | 2024-09-02 19:25:50

The convaiJS is meant to available to the browser directly

Reply by saurav0037 | 2024-09-02 19:26:00

this might be causing the above issue

Reply by saurav0037 | 2024-09-02 19:27:49

<@920428818928386068> Are you using something like react native?

Reply by dogbite7172 | 2024-09-02 19:52:22

No we use Unity and the webview component.

Reply by dogbite7172 | 2024-09-02 19:53:15

So we need to move to mobile app deployment would you think?

Reply by k3kalinix | 2024-09-02 23:04:34

When did you download this WebGL SDK?

Reply by dogbite7172 | 2024-09-03 02:25:00

Probably a few months ago

Reply by saurav0037 | 2024-09-03 07:30:33

<@920428818928386068> I would suggest you to try the latest one once.

Reply by dogbite7172 | 2024-09-03 13:37:41

OK will do thanks

This conversation happened on the Convai Discord Server, so this post will be closed.