can any one help me in catching the JS log message on xcode console, JS has to be run on web view (UIWebView).
to receive message from one webview use custom url scheme just like "log:yourlogmsg"
js code
window.location = "log:yourlogmsg";
use
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
and return false;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With