I'm working on a phonegap app that uses an iframe to embed an already mobile friendly webapp. In the webapp there is a search function that focuses a text field which reveals the virtual keyboard. So far everything is good...
However, I'm using a library that registers a touchstart listener on the document (the one inside the iframe). So if while the virtual keyboard is showing the user touches in the document the keyboard stops working.
From an ipad (or the ipad simulator in XCode... I've tested on 7.0.3) go here and follow the instructions: https://s3.amazonaws.com/ypassets-andy/app-frame.html
The interesting thing is is that if you don't wrap it in an iframe the keyboard doesn't break. Go here: https://s3.amazonaws.com/ypassets-andy/app.html and follow the instructions to see it NOT break.
I've been banging my head on this but can't figure out how to get this thing working. For reference these stack exchange posts seem related but I couldn't the issue with them:
- Prevent scrolling on mobile browser without preventing input focusing
- Click delay on iPhone supressing input focus
- ipad input in iframe
Thanks for any ideas!
Andy