I have WKWebView setup, which loadHTMLString(Need to load multiple html files which include JS). I am not able to get the console.log error messages that the JS code produce. I want to get this log within the app. Cannot change settings in safari.
I have tried JSContext(Javascript core) and WKWebView delegate methods, but couldn't find a solution.
I need all the console log messages that is loaded in WKWebView.
Swift version - 4.2 or 5.0
Thank You.
Barath Mohan