Qiuckly hacked something for this plugin to be compatible with wkwebview (using Ionic and Cordova iOs 4)
Going to need some extra work so as to cast WKWebView so it doesn't cause compiler error if WKWebView is not defined. Inspired by something like this (?) :
// TODO - find a way to conditionally cast WKWebView so it doesn't cause compiler error if WKWebView is not defined (iOS 7 / cordova-ios@3)
/else if([self.webView isKindOfClass:[WKWebView class]]) {
[(WKWebView)self.webView evaluateJavaScript:jsString completionHandler:nil];
}*/
}
Qiuckly hacked something for this plugin to be compatible with wkwebview (using Ionic and Cordova iOs 4)
Going to need some extra work so as to cast WKWebView so it doesn't cause compiler error if WKWebView is not defined. Inspired by something like this (?) :
(void)jsCallback: (NSString)jsString { if ([self.webView isKindOfClass:[UIWebView class]]) { [(UIWebView)self.webView stringByEvaluatingJavaScriptFromString:jsString]; }
// TODO - find a way to conditionally cast WKWebView so it doesn't cause compiler error if WKWebView is not defined (iOS 7 / cordova-ios@3) /else if([self.webView isKindOfClass:[WKWebView class]]) { [(WKWebView)self.webView evaluateJavaScript:jsString completionHandler:nil]; }*/ }