Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cordova and Ionic applications debugging not working on iOS 12.3.1+ if WKWebView is used #564

Closed
SounD120 opened this issue Aug 30, 2019 · 4 comments

Comments

@SounD120
Copy link
Contributor

SounD120 commented Aug 30, 2019

Since iOS 12.3.1 debugging of Ionic 3 and 4 apps and Cordova apps with cordova-plugin-wkwebview-engine doesn't work.
Under the hood this extension uses Chrome DevTools Protocol for debugging, but iOS devices require Webkit Remote Debugging Protocol. Ios-webkit-debug-proxy (IWDP) allows to transform Webkit Protocol to Chrome DevTools Protocol. According to IWDP issue the library hasn’t been adapted to changes in WKWebView yet.
Therefore application installs on device correctly but attach stage fails with such error:

'Debugger' domain was not foundError processing "attach": 'Debugger' domain was not found: [object Object]

Related issues: #561, #546, #559, ionic-team/cordova-plugin-ionic-webview#417, google/ios-webkit-debug-proxy#326

@SounD120 SounD120 changed the title Ionic applications debugging not working on iOS > 12.3.1 Ionic applications debugging not working on iOS >= 12.3.1 Aug 30, 2019
@dhanvikapila
Copy link
Member

@SounD120 Can you also investigate why our automated tests failed to catch this ?

@SounD120 SounD120 changed the title Ionic applications debugging not working on iOS >= 12.3.1 Cordova and Ionic applications debugging not working on iOS >= 12.3.1 if WKWebView is used Sep 25, 2019
This was referenced Oct 17, 2019
@SounD120 SounD120 changed the title Cordova and Ionic applications debugging not working on iOS >= 12.3.1 if WKWebView is used Cordova and Ionic applications debugging not working on iOS 12.2+ if WKWebView is used Nov 28, 2019
@SounD120 SounD120 changed the title Cordova and Ionic applications debugging not working on iOS 12.2+ if WKWebView is used Cordova and Ionic applications debugging not working on iOS 12.3.1+ if WKWebView is used Jan 29, 2020
@yinzara
Copy link

yinzara commented May 14, 2020

This is a pretty serious issue. Apple requires the use of WKWebView to submit to the App Store now (UIWebView apps are all rejected immediately automatially). With this bug still open, we are unable to debug our apps from within Cordova in VSCode.

@SounD120
Copy link
Contributor Author

Hi @yinzara . We are working on updating the extension to replace debugger core to vscode-js-debug right now . We cannot do much about that with the current debugger implementation due to some limitations, but with the updated version we'll have the direct access to CDP requests that the debugger sends, so we have plans to fix this during the migration #613 .

@RedMickey
Copy link
Contributor

Fixed debugging of Cordova and Ionic apps on iOS v12.3.1 - v13.7 in the dev/js-debug-migration branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants