jockeyjs icon indicating copy to clipboard operation
jockeyjs copied to clipboard

Adding WKWebView support

Open superarts opened this issue 9 years ago • 1 comments

When I'm adding support for WKWebView so that my app supports iOS 7 and iOS 8 at the same time, I found it's possible to add most of my changes on the app side, mostly including handling jockey://event/xxx messages with my own code. Surely it would be good to add this to Jockey but it will involve some interface changes. Anyhow, the only change I need to made to Jockey is the + (void)send:(NSString *)type withPayload:(id)payload toWebView:(UIWebView *)webView call. When I need to send from app to web, the receiver has to be a UIWebView. So I added minimal modification by making it's possible to pass a WKWebView as a UIWebView (of course in this case either a protocol should be created or the type should be simply changed to id, but I don't want to change too much to exisiting Jockey).

Cheers.

superarts avatar Oct 30 '15 00:10 superarts

si jockey does support mkwebview?¿? i didn't quite get how to enable it.

t2ac32 avatar Aug 18 '16 19:08 t2ac32