Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

native.keyboardshow Not Firing #33

Open
aintnorest opened this issue Sep 16, 2014 · 15 comments
Open

native.keyboardshow Not Firing #33

aintnorest opened this issue Sep 16, 2014 · 15 comments

Comments

@aintnorest
Copy link

I have a simple function that changes the text of a div on native.keyboardshow with cordova v. 3.5 on an ios app. The emulator has it working great on the iphone io 6.1 but its not firing on iphone retina io 7.1

@runspired
Copy link

+1 I've been dealing with this issue for 2 months and have yet to come up with a good solution. The input doesn't focus until the second tap, but the keyboard shows immediately. native.keyboardshow does not fire, nor does focus.

@julienroubieu
Copy link

I couldn't get the event to get fired on both iOS 7 and 8, but I guess it could be an issue due to the default inclusion of the Cordova keyboard plugin by Steroids... (https://muut.com/i/appgyver/steroids:steroids-35-cordova-plugin). Can both plugins coexist in the same app?

@laucel
Copy link

laucel commented Dec 2, 2014

same as @runspired, any update?

@pencilcheck
Copy link

+1 on iOS

@Rafael-Acosta
Copy link

In my case I just needed to add IonicKeyboard.m to the Target Membership in Xcode

@PeanutButterCo
Copy link

update on this ?

@tlancina
Copy link
Contributor

Hmm haven't seen this yet, if someone posts some code replicating the issue I'll take a look.

@runspired
Copy link

@tlancina I solved this. It's not an issue with the ionic keyboard plugin (persay), it's an issue with events getting lost when the keyboard pushes the page upwards. The ghost click ios fires to focus the input on touchEnd is positionally based and doesn't hit the right target since the target has since moved.

In theory the problem is done away with if you implement a fastfocus mechanism (which you probably should be doing anyway), but it's also something I hit often enough until I did it should be mentioned in the docs with a solution.

@tlancina
Copy link
Contributor

@runspired ahh the curse of the 300ms delay :) Thanks for posting your findings! Although that seems strange, since on iOS the event is fired with UIKeyboardWillShow... which I have never observed to not happen when the keyboard did in fact show, regardless of focus or not.

I'll leave this open for now for others who may be having issues, or, if I can replicate it I'll add it to the docs.

@northkode
Copy link

This plugin also doesn't fire with none native keyboards. like swiftkey...
is there a solution?

*edit - might be related to cordova 5.0 and android 4.0.0 cordova. Will investigate furtuer

@twavis
Copy link

twavis commented Dec 24, 2015

@runspired I've ran into this on android and was wondering if you could elaborate on your fix...

I'm already using a fastclick library and it happens (native.keyboardshow doesn't fire) even when the input isn't shifting on focus..

@TawabG
Copy link

TawabG commented May 12, 2016

Still having this problem in Cordova 5.4, any updates?

@ghost
Copy link

ghost commented Dec 12, 2016

Is there any fix for this? I have been losing sleep over this for weeks. The plugin behaves very inconstantly on Android, especially due to the variability and inconsistency of the platform.

@mmolhoek
Copy link

mmolhoek commented Sep 28, 2017

still having this issue on iOS

cli packages: (node_modules)

@ionic/cli-utils  : 1.12.0
ionic (Ionic CLI) : 3.12.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android ios 4.4.0
Ionic Framework    : ionic-angular 3.6.1

System:

ios-deploy : 1.9.2
Node       : v7.5.0
npm        : 4.1.2
OS         : macOS Sierra
Xcode      : Xcode 9.0 Build version 9A235

Misc:

backend : pro

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

13 participants