Search code examples
iosswiftcocoapodswbwebviewconsole

Failed to load resource:unsupported URL wkwebview-bridge://invoke


WBWebViewConsole is not giving any logs. Earlier it worked but for some reason its not working now in swift.I think it's not compatible with swift.

For any log that's created in js giving this error

Failed to load resource:unsupported URL wkwebview-bridge://invoke


Solution

  • You might be overriding decidePolicyForNavigationAction in the instance of WBWKWebView

    If you want to do any implementation do it in the WBWKWebView's decidePolicyForNavigationAction and handle respectively.