Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Change to cordova-plugin-keyboard breaks hideFormAccessoryBar functionality when using WKWebView #187

Closed
rumit91 opened this issue Oct 26, 2015 · 6 comments

Comments

@rumit91
Copy link
Contributor

rumit91 commented Oct 26, 2015

I have been relying on cordova-plugin-keyboard to hide the form accessory bar in iOS. However, this change broke the compatibility with WKWebView.

Looks like with the previous code cordova-plugin-keyboard would attach observers to keyboard events and then look for the affected webview instance to apply the change to. Now the change is applied to the webview class and since WKWebView does not use that class the right property is not being modified.

I tried changing Class webBrowserClass = NSClassFromString(@"UIWebBrowserView"); to Class webBrowserClass = self.webView.class; to get the class of the instance, but that didn't work.

I also tried setting up the inputAccessoryView property in ReroutingUIWebView.m the same way scrollView is set up, but that didn't work either.

Any suggestions for how to fix this issue?

@Wenape
Copy link

Wenape commented Oct 28, 2015

This happens to me as well, haven't been able to fix it yet.

@andreialecu
Copy link
Contributor

This seems to be a pretty big issue, any workarounds?

@berndartmueller
Copy link

+1

@andreialecu
Copy link
Contributor

@berndartmueller this has been fixed in cordova-plugin-keyboard: cjpearson/cordova-plugin-keyboard@33cbbd9

If you use that one, it will work.

@berndartmueller
Copy link

@andreialecu: thank you!!

@fndppx
Copy link

fndppx commented Apr 28, 2018

App Store could reject? if user this api

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

6 participants