---
title: Analyze network requests using MobileRequest event data
source: https://docs.newrelic.com/docs/mobile-monitoring/mobile-monitoring-ui/network-pages/analyze-network-requests-using-mobilerequest-event-data
---

Monitoring HTTP and network requests gives you insight into how your app is performing and provides data that can help you improve your app. To find HTTP and network requests and errors, you can view them in the [mobile monitoring UI](#view-mobile) or query `MobileRequest` and `MobileRequestError` with NRQL.

## Enable `MobileRequest` for earlier versions of iOS and Android [#enable-mobilerequest]

`MobileRequest` data is enabled by default for:

-   Android version 5.15.2 or higher
-   iOS version 6.0.0 or higher

For earlier versions, starting with Android version 5.14.0 or iOS version 5.14.0, you must enable the feature. Upgrade to the latest [Android](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-android/install-configure/upgrade-android-agent) or [iOS](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-ios/installation/upgrade-ios-agent) version, or add the following feature flag to your app, before the New Relic start call:

**Enable for Android**

Place the feature flag before the start call in the `onCreate` method of the `MainActivity` class.

````java
NewRelic.enableFeature(FeatureFlag.NetworkRequests);
NewRelic.withApplicationToken("NEW_RELIC_TOKEN").start(this.getApplication());
```

````

**Enable for iOS**

Place the feature flag before the start call which should be the first line of `didFinishLaunchingWithOptions` method.

Objective-C

````objectivec
[NewRelic enableFeatures:NRFeatureFlag_NetworkRequestEvents]
[NewRelic startWithApplicationToken:@"NEW_RELIC_TOKEN"]
```

Swift

```swift
NewRelic.enableFeatures(NRMAFeatureFlags.NRFeatureFlag_NetworkRequestEvents)
NewRelic.start(withApplicationToken:"NEW_RELIC_TOKEN")
```

````

## Query HTTP and network requests with NRQL [#query-insights]

To create custom dashboards for HTTP and network requests, run queries using the following events and attributes:

-   [`MobileRequestError`](https://docs.newrelic.com/docs/nrql/nrql-examples/nrql-query-examples-mobile-monitoring/#mobilerequesterror-examples)
-   [`MobileRequest`](https://docs.newrelic.com/docs/nrql/nrql-examples/nrql-query-examples-mobile-monitoring/#mobilerequest-examples)

## View HTTP and network requests in Mobile [#view-mobile]

To explore `MobileRequest` and `MobileRequestError` data in the UI, go to the following pages:

| Page                                                                                                                               | What you can do here                                                                                                                                                                                                                                                                                                                                    |
| ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Mobile crash event trail](https://docs.newrelic.com/docs/mobile-monitoring/mobile-monitoring-ui/crashes/mobile-crash-event-trail) | The **Mobile crash event trail** shows you the events leading up to a crash of a mobile app, based on your subscription level's [data retention policy](https://docs.newrelic.com/docs/accounts/original-accounts-billing/product-based-pricing/overview-data-retention-components/#mobile). These events can help you diagnose the cause of the crash. |
| [HTTP requests](https://docs.newrelic.com/docs/mobile-monitoring/mobile-monitoring-ui/network-pages/http-requests-page)            | The **HTTP requests** page includes charts for your top 20 domains by response time and average throughput.                                                                                                                                                                                                                                             |
| [HTTP errors](https://docs.newrelic.com/docs/network-errors-http-error-network-failure-analysis)                                   | The **HTTP errors** page helps you to better understand HTTP errors and network failures associated with your mobile app and to connect errors to services that are causing issues.                                                                                                                                                                     |
