apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.15k stars 987 forks source link

WKWebView no longer debuggable on iOS 16.4+ #1321

Closed daviesdoclc closed 1 year ago

daviesdoclc commented 1 year ago

Bug Report

Problem

The WKWebView is no longer debuggable on iOS 16.4+ even with the fix in cordova-ios 6.3.0 (https://github.com/apache/cordova-ios/pull/1300).

What is expected to happen?

I should be able to connect to the WKWebView via Desktop Safari when building my app in debug mode.

What does actually happen?

The WKWebView does not show up in the Developer Tools under my device. My Capacitor app in the same environment is debuggable.

Information

Running cordova run ios --device --debug

Tried adding <preference name="InspectableWebview" value="true"/> to config.xml and still no luck.

I am using the standard WKWebView.

Command or Code

See above

Environment, Platform, Device

cordova-ios

Version information

iOS 16.4.1, MacOS 13.3.1, Safari 16.4, cordova-ios 6.3.0, cordova 11.1.0

Checklist

daviesdoclc commented 1 year ago

My bad. This was me overwriting the WKWebView during install via a hook. Sorry.

Kashaf14 commented 1 year ago

@daviesdoclc i am still unable to get this working , would you please explain what was your mistake?

It would be great.

dpogue commented 1 year ago

@Kashaf14 This has been fixed in cordova-ios 6.3.0 for the built-in Cordova webview.

If you are using the cordova-plugin-ionic-webview plugin rather than the built-in webview, then support for the web inspector needs to be added by the Ionic team that maintains that plugin. You can report bugs on their plugin repo here: https://github.com/ionic-team/cordova-plugin-ionic-webview