Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Requests from WKWebview invisible?

Open fuggly opened this issue 2 years ago • 15 comments

Proxyman 3.8.0 Mac Monterey 12.5

I apologise if this has been answered somewhere before, but I couldn't really find anything, so I will ask here:

I cannot see any requests from WKWebView. Funny enough, I can see all other requests that we make with our iOS app (outside WKWebview). But those that come from a WKWebView, including the first loading request, but also all other links that are clicked inside, are not visible in Proxyman. We use Atlantis as well and have it running not he debug builds, but regardless of Atlantis included, running or not, WKWebView requests are invisible.

Is there anything we can do to make them visible? Or something we can troubleshoot?

fuggly avatar Aug 17 '22 07:08 fuggly

By default, all traffic from WKWebView doesn't go through the HTTP Proxy from your iPhone, so Proxyman could not capture it.

Ref: https://developer.apple.com/forums/thread/110312


So, from what I experience, there is no way to capture traffic from WKWebview on iOS devices.

NghiaTranUIT avatar Aug 17 '22 07:08 NghiaTranUIT

and here: https://stackoverflow.com/a/55541462/3127477

NghiaTranUIT avatar Aug 17 '22 07:08 NghiaTranUIT

if you use Proxyman for iOS, I believe that the traffic from WKWebview can be captured because "Proxyman for iOS" uses the VPN, instead of a local proxy server.

NghiaTranUIT avatar Aug 17 '22 07:08 NghiaTranUIT

Oh cool thanks, using the VPN I can see the traffic on my device. Cool, thanks!

fuggly avatar Aug 17 '22 08:08 fuggly

Thanks, good to know.

Carrione avatar Oct 02 '23 11:10 Carrione

So I need to install proxyman on a MAC book?

Eddcapone avatar Jan 09 '24 11:01 Eddcapone

@Eddcapone yes, it's. Websocket is a features from the Macbook/Windows version 👍

NghiaTranUIT avatar Jan 09 '24 12:01 NghiaTranUIT

@NghiaTranUIT Thx, I can confirm that it works on a MAC book. But your wrote Websocket is a feature from Macbook/Windows version, then why does it not work on windows?

Eddcapone avatar Jan 10 '24 15:01 Eddcapone

@Eddcapone it should work on Windows and Linux too.

  1. Can you describe your setup?
  2. Is it from iOS/Android or your Windows Web Browser app?

NghiaTranUIT avatar Jan 11 '24 01:01 NghiaTranUIT

@NghiaTranUIT It works, but it does not catch all requests on windows. If I use the mac book, then it catches everything.

Eddcapone avatar Jan 16 '24 11:01 Eddcapone

@Eddcapone then, it's not a bug from Proxyman. Some Windows apps don't respect the System HTTP Proxy. Their requests go directly to the Internet. So, Proxyman can't capture it.

You might find the Proxy Setting in your Windows app, to see if we can override it.

NghiaTranUIT avatar Jan 17 '24 07:01 NghiaTranUIT

@NghiaTranUIT It has nothing to do with windows itself, I just host proxyman on a windows machine. I connected from an iphone to proxyman and it did not capture most of the requests.

Eddcapone avatar Jan 19 '24 08:01 Eddcapone