[IOS mobile app]  input autofocus with keyboard open
Question
Application Type
Mobile
Service Studio Version
11.10.10 (Build 38777)

Hello everyone, 

In the project where I am working on, there is the requirement of when navigate to the new screen, the input is with focus and the keyboard is open. 

Now, I have the OnReady Event of the block with the following JS : document.getElementById($parameters.SearchId).focus();

Besides that, I have the following code in Extensibility configuration:

        "ios": [

        {

            "name": "KeyboardDisplayRequiresUserAction",

           "value": "false"  

        }

        ]

In Android is working perfectly, but I don't have the desired behaviour in IOS native app.

Does anyone know how can I solve this?

Thank you in advance. 

mvp_badge
MVP

Hi Joana.

I think Apple disabled the focus functions because of usability.

Have you tried to call a click event? I found that option is a 2019 answer here:
https://stackoverflow.com/questions/54424729/ios-show-keyboard-on-input-focus


Hi Nuno, 

Thank you for your time.

I have ´just tried and it's still not working. Unfortunatly, the keyboard is not opening.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.