Android Unity build not sending messages

Original Discord Post by wamgamejay_33501 | 2024-09-30 20:13:57

Hello, sorry for the first message. Was sent early.

There is the issue: in the build the chatbox is not sending messages after I click OK. The text just stays in the inpout field. The text to speech works fine, the character responds.

Unity Version 2022.3.48f1
Latest Anoroid SDK and Convai SDK

I’ve tried to build even from Convai demo scene. Doesn’t work.
I’ve tried the build on Smasung S20, A55, on some Motorola, …

The AI guy on Convai.com was not able to help me. No errors in the console. I’m stuck.

Reply by k3kalinix | 2024-09-30 20:16:06

Hello <@1199860761518936146>,

Reply by k3kalinix | 2024-09-30 20:16:12

Welcome to Convai Community!

Reply by k3kalinix | 2024-09-30 20:16:40

Could you please share a video to better understand the issue?

Reply by wamgamejay_33501 | 2024-10-01 10:04:46

Attachments:

Reply by wamgamejay_33501 | 2024-10-01 10:04:52

Hope it helps.

Reply by wamgamejay_33501 | 2024-10-01 10:06:02

I’m trying to create a UI button for sending now, so that could be a workaroud.

Reply by k3kalinix | 2024-10-01 10:07:31

Can I see Convai in the Package Manager Window?

Reply by wamgamejay_33501 | 2024-10-01 17:44:53

Sure.

Images:

Reply by k3kalinix | 2024-10-01 18:27:24

<@679221735458996224>

Reply by k3kalinix | 2024-10-01 18:27:39

I remember something about this issue. Could you please review it?

Reply by starboy_24 | 2024-10-01 18:31:41

Sure, will check it tomorrow. I think has to be related with onSubmit

Reply by wamgamejay_33501 | 2024-10-02 18:38:47

Android Unity build not sending messages

Reply by k3kalinix | 2024-10-03 01:01:59

<@679221735458996224>

Reply by k3kalinix | 2024-10-07 07:57:29

<@433610960725344267>

Reply by raghuvanshagarwal | 2024-10-07 08:43:59

hi <@1199860761518936146> you can leverage the onSubmit event on the inputfield to call HandleInputSubmission, for this please make the following changes

  1. Headover to ConvaiPlayerInteractionManager class and make HandleInputSubmission a public method
  2. Create a script and attach it to Inputfield
  3. Subscribe to onSubmit event and call
  4. call ConvaiNPCManager.Instance.SetActiveConvaiNPC(, false)
  5. call ConvaiNPCManager.Instance.activeConvaiNPC.playerInteractionManager.HandleInputSubmission()

Hope this helps, we will fix this issue in next release

Reply by raghuvanshagarwal | 2024-10-07 08:44:13

cc <@1023671043287699568> <@679221735458996224>

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