Search Unity

Unity input fields: Barely usable on Android

Discussion in 'Android' started by waldgeist, May 31, 2021.

  1. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    388
    We have a mobile AR app that uses Unity's input fields for sign up and login. Unfortunately, these input fields are super buggy on mobile devices.

    On Android, the cursor tends to jump around once you type in, this happens if you type at a normal typing speed. Only if you type very slowly, you can avoid that. This is especially bad if you're using those input fields for password fields. It was so unrealiable that we had to add a "show password" feature to at least let the user know if the password was typed in correctly.

    This does not happen on iOS, only on Android (and on all devices we have). Also on Android, the user cannot position the cursor somewhere inside the field. It always shows up at the end of the input field. This is also not the case on iOS.

    On both systems, the user cannot paste in something from the keyboard. Which is especially frustrating if users have a password manager installed. Effectively, we force them to type in their passwords manually.

    We are using the "old" input fields, but we also tried the TextMeshPro variants. These were even worse, though, so we reverted everything back to the normal UI versions. We even bought an asset on the store (Modern UI), hoping that this would work better, but it didn't, as it was built upon the regular Unity UI fields.

    Last time I asked the same question in this forum, a couple of other people came up who faced similar problems on mobile devices. But none of them had a solution. Has anyone ever found a workaround to this?

    We're on Unity 2019.4 and cannot upgrade to a newer version for now, because of other dependencies (couldn't get our AR stuff working in Unity 2020 so far). We're not using any scripts that might interfer with the input field's regular behavior.
     
    RobinopdeBeek and Vadimskyi like this.
  2. Vadimskyi

    Vadimskyi

    Joined:
    Jan 13, 2020
    Posts:
    12
    Unity's built-in InputField for android is actually laughably bad...
    Just created empty test project on Unity 2019.4.15f (LTS by the way) slapped canvas and InputField with "Hide mobile input" option off.
    Not only did cursor jump around as I typed relatively fast. After about 1minute of typing and deleting, the input field just froze off and would not respond to any action after that: https://imgur.com/a/WqZDfnF
    (It was actually an ArgumentException inside InputField script which caused the problem...)
    Not exactly production ready UI for android, I would say.

    edit: same result on 2020.3.12f1(LTS)
    edit2: found no issues on 2021.1.12f1
     
    waldgeist likes this.
  3. RobinopdeBeek

    RobinopdeBeek

    Joined:
    Jan 17, 2018
    Posts:
    23
    I have also been following the issues about the input field on Android for almost two years now. It is unbelievable how bad it is. I've tried multiple workarounds (Mopiscus came close, but still far from perfect), but none provide what a user expects from an input field.

    When 'Hide mobile input' is ticked off you expect the input field to work like every other app on your phone. But when I test it on Unity 2021.1.15 the mobile input field above the keyboard is actually still there. It's just made invisible, but you can still select text in it. See screenshots below:
    Unity input field issue.jpeg Unity input field issue 2.jpeg
    Besides that you can't interact with the input field while the keyboard is open. Lots of the functionalities a user expects from an input field can't be used now. Even the basics like moving the input position and holding down to select a word are not possible. Are you kidding me?!

    I can't fathom why this would be the solution Unity would go for. Even worse, how it could get through Quality Control. We simply want an input field that works like every other Android app. Not this badly hacked together bullshit!
     
    jacky06211, daveMennenoh and longiave like this.
  4. daveMennenoh

    daveMennenoh

    Joined:
    May 14, 2020
    Posts:
    107
    Is it any better a year later???
     
  5. jacky06211

    jacky06211

    Joined:
    Apr 18, 2022
    Posts:
    1
    daveMennenoh likes this.
  6. daveMennenoh

    daveMennenoh

    Joined:
    May 14, 2020
    Posts:
    107
  7. daveMennenoh

    daveMennenoh

    Joined:
    May 14, 2020
    Posts:
    107
    Sorry, have had no luck with this plugin.
     
  8. Tirtaodd997

    Tirtaodd997

    Joined:
    Mar 19, 2022
    Posts:
    2
    hey, i don't know if it belong in here, but i have a really hard time to open / make the phone keyboard to show up, no matter what i did it never show up, is there a setting that i just missing ?

    * i already tried using the mopsicus package but it still won't show up

    i use Unity 2022.2.1f1
     
  9. gisinator

    gisinator

    Joined:
    Jan 23, 2021
    Posts:
    11
    So, even 2 years after this initial post here I'm facing the exact same issues. I cannot move the cursor around within the inputfield on Android, instead the keyobard slides away when I tap on some letter within my inputfield.

    Even more frustrating is the fact that this issue seems to be around for many, many years and it got mentioned here many, many times.

    In my eyes a "normal" working inputfield shouldnt be something too hard to ask for...