Keyboard input WebGL Mobile

I have an InputField that works on most browsers, however on mobile the virtual keyboard does not pop up. everything else is working good on mobile for me except for that. I am wondering if anyone has gotten it to work. All i have found are posts about it not working. If this just doesnt work, I think my options are using my own virtual keyboard, or somehow sending form data to the webGL unity app. Has anyone encountered this? What did you do?

Thanks

5 Likes

Did you solved it? I`m facing the same issue…

Same

Hello guys, I managed to create a workaround for this problem and freely uploaded to github:
https://github.com/dantasulisses/WebMobileInputFix
I didn’t test extensivelly but looks like it is working fine and the use is very simple

1 Like

I tried adding this work around but only end up getting multiple errors. Unity 2018.3.4

I also tried this. It opens my mobile keyboard, but when I start typing, nothing changes. Unity 18.2.12

I found this :

Although a little bit ugly , it works fine.

Thanks for this contribution. I implemented it in my own game and it does the job indeed, however, I found the following issues:

  1. If you use the first option (native), there is a not-so-friendly pop up with information about the server/site, prompting to the text input via mobile keyboard. After submitting the text, the game exits full-screen mode (if so).
  2. the second options (browser prompt) seems to prevent the issue described above, however, it depends on the resolution of both the game and the mobile browser. Perhaps there is a way to configure it in order to display it properly in case you having different resolutions? (e.g. your WebGL game is full-screen).

BTW I uploaded a sample game to itch.io using this asset. I haven’t tried via GitHub or any other server.

1 Like

Thank you for your sample project.
It have problem: Input Field Native changed event On Value Change instead of Input Field default (On Value Change (string)). Can you help me how can I implement Input Field default event On Value Change (string)?

Update Jan 20, 2021: v2020.2.1f1 – problem still exists.

2 Likes

Adding support for bringing up the virtual keyboard is currently on our radar. We are hoping to land that in to 2021.2 (and possibly backport if code structure permits).

15 Likes

@jukka_j Thank you, we do need that, too.

Until that the following might be another alternative which seems to work on our iPhone X and Samsung Galaxy S8:
Code: GitHub - kou-yeung/WebGLInput: IME for Unity WebGL
Demo: http://kou-yeung.mygamesonline.org/WebGLInputSample/index.html

5 Likes

I have tried all of these thirdparties now and none of them work…

No idea if it is because of the implementation or the version of Unity. I am on 2020.2.0f1.

2 Likes

Im trying customers to login into a game made in WebGL and it’s frustrating that nothing happens. I’m feeling frustrated. It´s just a stupid thing and it doesn’t work. Is there a simply way to do it? I’m searching the whole web and nothing helps.

It’s annoying that this feature is missing.
Solution: make your own keyboard inside Unity with GUI buttons. It’s a drag, but it works.

Mobile keyboard input is on our task list. We know this is a significant missing feature for mobile support.

3 Likes

Do you guys have any time frame when this feature will be available?
I have a project for a customer which first was made for native mobile. But because of well considered reasons, we decided to switch to WebGL. Everything is working except for a stupid contact page.
Now 1 week before the deadline, I have to tell the customer it is not possible with Unity. Not even a workaround. I tried all the available “workarounds”, but none of them are working on all the platforms.

UPDATE:
I’m willing to use a beta version for it as well. Or some advice that I can use to make it work.

1 Like

One solution I am considering is just making a separate HTML-based (with JS)-interface that communicates with an “API” provided by the Web Assembly that just accepts strings, so it can work as a text-based interface without having to use Unity’s own GUI. However, I am still in the exploration phase and I wonder how, or even if, this is feasible.

1 Like

@brendanduncan_u3d this has been a detected problem since more than 2018.

Can you tell us a time frame to have this solved already?

It’s ridiculous that things like this are still a problem in a rental software, supposedly the change to rental only should provide a much bigger and better support, like fixing old problems like this one.

@Eorlinger this is ridiculous, but if you manage to solve this, please tell us your solution

1 Like

We cannot give you a time frame, but it is part of our mobile support plan that has been in progress. I understand it is frustrating not having a built-in mobile keyboard solution.

4 Likes