Service Monitoring

Whenever an app makes a network call, Apteligent monitors and captures certain information automatically. You can optionally configure filtering and location details. For an introduction, see Service Monitoring.

Apteligent automatically monitors the performance of network requests formed via the following APIs:

  • all iOS versions
    • [NSURLConnection connectionWithRequest:delegate:]
    • [NSURLConnection sendAsynchronousRequest:queue:completionHandler]
    • [NSURLConnection sendSynchronousRequest:returningResponse:error:]
    • [NSURLConnection initWithRequest:delegate:]
    • [NSURLConnection initWithRequest:delegate:startImmediately:]
  • iOS 8 and above
    • [NSURLSession dataTaskWithURL:]
    • [NSURLSession dataTaskWithURL:completionHandler:]
    • [NSURLSession dataTaskWithRequest:]
    • [NSURLSession dataTaskWithRequest:completionHandler:]
    • [NSURLSession downloadTaskWithURL:]
    • [NSURLSession downloadTaskWithURL:completionHandler:]
    • [NSURLSession downloadTaskWithRequest:]
    • [NSURLSession downloadTaskWithRequest:completionHandler:]
    • [NSURLSession downloadTaskWithResumeData:]
    • [NSURLSession downloadTaskWithResumeData:completionHandler:]

Apteligent can also monitor requests made via web views. This form of monitoring must be explicitly enabled. See more details see Monitoring Web Views.

  • [WKWebView loadRequest:]

Note

Apteligent doesn’t monitor [UIWebView loadRequest:]. If you need this, consider using WKWebView or Logging Network Request.

Disabling Service Monitoring

See Service Monitoring Configuration to disable automatic Service Monitoring.

Filtering Captured Data

It is possible to customise filter blacklists that will completely discard matching URLs. See CRFilter and Service Monitoring Configuration for more information.

Configuring Location

Apteligent service monitoring ties location information to network data. By default, location information is obtained through a reverse IP lookup.

Starting with library version 4.1.1, you have the option of sending more accurate latitude and longitude information to our servers. Update the device’s location by making the updateLocation API call.