"focusFirstInput: true" not work on iphone ios7


#1

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.


#2

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.


#3

yes,I already add that in config.xml

but still not work.


#4

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?


#5

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


#6

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