react-native-network-logger icon indicating copy to clipboard operation
react-native-network-logger copied to clipboard

is there a way of tracking request made by webviews?

Open joaquinbian opened this issue 1 year ago • 2 comments

Hey! I hope you are doing well! This library only tracks requests that are made by the app, right? For example, if I develop a web with React and I render it in a webview in my RN app, am I able to see the requests made by that web page?

joaquinbian avatar Nov 13 '23 22:11 joaquinbian

Hi @joaquinbian, I don't think it will work as it needs to go through the react-native XHRInterceptor which I assume webviews don't. I haven't tried though so can't be 100% sure how webviews are set up.

alexbrazier avatar Nov 13 '23 22:11 alexbrazier

Ohh I see, I suppose webviews does not go through XHRInterceptor as well.. I tried fetching from the React Native app and I am able to see those request, but no the ones made by the webapp.

Thank you so much!

joaquinbian avatar Nov 14 '23 12:11 joaquinbian