Android Keyboard is opening automatically

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
For some reason my Android softkeyboard is raising without me doing anything. This happens during the apps launch sequence. I cannot seem to figure out why.

I am not focusing on anything. It seems to happen before my splashscreen even hides (on deviceready).

Is this a known issue? App ID: 833596

Any helps is much appreciated.

~Red
Photo of Red2678

Red2678

  • 255 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I'm not a PGB support staff member, so I can't see your code. But allow me two wild guesses:

1. Are you using any 3rd party keyboard plugins? If so, could it be that you call a KeyboardShow() function on app start unintendedly?

2. Do you have any input fields on your app's first screen? If so, could it be that such field is positioned exactly in the same spot as the app's icon on your home screen? (My guess is that you tap the icon twice, which triggers the app to think that the second tap is a tap on the input field 'underneath' the icon. You might place the icon in a home screen corner and try again).
Photo of Red2678

Red2678

  • 255 Posts
  • 0 Reply Likes
Petra, thanks for your response.

#1) So I did a 'find' in the entire project. No "KeyboardShow()" anywhere (as I expected). The only 3rd party plugins I am using are com.phonegap.plugin.statusbar, com.plugins.shortcut, com.ohh2ahh.plugins.appavailability.

#2) No inputs on the home screen, just a button. It is practically all of Hardeeps phonegap-build startapp code straight from GiuHub.

I can't figure it out :/
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, I have never seen such behaviour. There must be something different in your app.
Have you tried to temporarily remove all plugins, just to be sure that this is no plugin problem? And have you checked that you are not emulating the Android Menu Button (long tap) in any scripts?

If these hints don't improve anything, then I've run out of ideas.
Photo of Agelos Pappas

Agelos Pappas

  • 10 Posts
  • 2 Reply Likes
I have the same issue with Android. Have you found a solution or the cause of the issue?
Photo of Red2678

Red2678

  • 255 Posts
  • 0 Reply Likes
Sorry, I never did. :(
Photo of Agelos Pappas

Agelos Pappas

  • 10 Posts
  • 2 Reply Likes
Well I just found out that changing this
preference name="android-windowSoftInputMode" value="stateVisible"
to this
preference name="android-windowSoftInputMode" value="adjustPan"

in config.xml solved the issue for me
Photo of Red2678

Red2678

  • 255 Posts
  • 0 Reply Likes
Thanks, I will have to try that.
Photo of Matt Kenefick

Matt Kenefick

  • 12 Posts
  • 0 Reply Likes
Did this work?
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Issue mark as resolved.