"focusFirstInput: true" not work on iphone ios7

my code like this:

the modal slide up,but not focus on my first input,and the keyboard not show.

how can I fix it ?
thanks.

iOS does not allow keyboard interaction from an app unless you specifically allow it.

You need this in your config.xml:

<preference name="KeyboardDisplayRequiresUserAction" value="false" />

Let me know if that helps.

yes,I already add that in config.xml

but still not work.

Just setup a test myself on iOS 7 via Cordova. Works just fine.

I’m using Ionic 0.9.25. What version are you using?

I’m using Ionic 0.9.26,
and I develop app in Monaca.

Ugh… I’ve setup a 0.9.25 and 0.9.26 sample app from scratch. The first time I ran it, the 0.9.25 sample worked properly. The second time I ran it, the focus did not work. The 0.9.26 never works.

I will open a bug issue.

Thanks for pointing this out.

Issue # 729 : https://github.com/driftyco/ionic/issues/729

1 Like