ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.22k stars 1.01k forks source link

FR: Unable to monitor Angular HTTP requests #589

Closed mburger81 closed 6 years ago

mburger81 commented 6 years ago

We are not able to monitor Ionic4 + Angular6 HTTP requests running test app on real android device using android studio.

If we use Chrome DevTools -> Remote Device monitoring we don't see any traffic in NETWORK also we don't see traffic using Android Studio Profiler

https://developer.android.com/studio/profile/network-profiler?utm_source=android-studio#network_connection_troubleshooting Profiler does only work with HttpURLConnection and OkHttp, so probably not with XMLHttpRequest which HttpClient is on top.

So it would be very difficult to debug traffic on android devices. Right?

jcesarmobile commented 6 years ago

From chrome://inspect/#devices I can see xhx and fetch calls made to mapbox API

captura de pantalla 2018-06-19 a las 12 30 10
mburger81 commented 6 years ago

Sorry man, this was my mistake! On first opening the INSPECTOR from DEV TOOLS there is no NETWORK log. We have to reload the page or do something other to see network log. My mistake. Sorry!