Proxy with Flutter only works on iOS Simulator and not device

Viewed 404

I've been trying to get my iOS device to show me network traffic on Charles proxy but I haven't found any solution yet.

The code presented in here is the closest thing I have found that works:

https://medium.com/hoursofoperation/use-charles-proxy-to-debug-network-requests-in-flutter-apps-2f2083275cad

However, this only shows traffic in Charles if the project is run on simulator. I don't know why simulator works and Device doesn't.

I tried changing the ip address of the proxy from code in the above blog to the ip address of the phone, to my computer, and to the proxy server. Nothing works and all calls just flat out fail.

I know my phone can go through Charles normally, because other web calls still happen. So what do I need to change for Flutter to work on my device?

0 Answers
Related