Repo for testing out issues with the PhoneGap keyboard in iOS. Specifically created to illustrate an issue with the cordova-plugin-wkwebview and cordova-plugin-keyboard. See this issue for more details.
- On your Mac install PhoneGap - http://phonegap.com/
- Run
phonegap build ios
- Open
/platforms/ios/KeyboardIssue.xcodeproj
and Run
###Default###
- The default behavior of the WKWebView was to just slide up the whole webview and leave room for the form bar which effectively ignored the
Keyboard.shrinkView(true)
command of the keyboard plugin. Illustrated in the next two screenshots:
###With fix to ReroutingUIWebView.m
###
- Adding my fix to the
ReroutingUIWebView.m
file makes the app behave a bit closer to what's desired:
###With fix to <meta>
in index.html
###
###Still need to fix scrolling issue###
- When the keyboard is up the user is unable to scroll the webview as expected.
- It is still possible to scroll the webview, but only if you scroll in a thin little strip right below the title bar.
- Will investigate further.
###Please post here if you have any suggestions for a fix to this issue!###