Ionic4 - ion-input autofocus keyboard not showing

Hi All,

I am using Ionic4.12.0. I am trying to archive the following:
when user opens my app, it will lead to sign in page. I want it to autofocus on the input and keyboard to show.

I am currently using autofocus=“true”, it shows the cursor on the input but the keyboard does not show. I tried applying <preference name=“KeyboardDisplayRequiresUserAction” value=“false” />, but it does not work as well.

Any help would be greatly appreciated. Thank you.

Hi All, I am using Ionic4 and my keyboard does not show up even with using autofocus=“true” in my ion-input tag.
Reality:


Expected:

Any help would be appreciated. Thank you.

Hi,

Did you find any solution? I am also facing same issue.

Hi.

For android, it is actually working. For iOS, have to use ViewChild method to target input and setFocus() on it.