简体   繁体   中英

Monitoring network requests using Firebase performance on ionic, capacitor, angular

I'm using Firebase performance monitoring in my android application built with ionic/capacitor/angular . I've got Firebase metrics and traces implemented and working, But I'm getting no data related to network requests. Wondering if it's possible to monitor network requests in a non-native application?

After some research, I found out that it is possible to monitor network requests. But for this the network requests must be sent natively, eg with OkHttp3. For example In Angular, you can create an HTTP interceptor that forwards each request from the HttpClient to the plugin.Of course it takes some effort. But as far as i know, this is the only solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM