For the complete documentation index, see llms.txt. This page is also available as Markdown.

WebView Support

Track and capture user interactions, network logs, and screen loading within WebViews.

Overview

WebViews are components that embed web content within native mobile applications. The Luciq SDK can automatically detect and monitor WebViews in your Flutter app.

This feature is available from SDK v19.7.0.

When enabled, WebView support allows you to:

  • Report WebView screen loading times in APM

  • Capture user interactions inside WebViews (tap, scroll, navigation)

  • Log network requests (Fetch/XHR) triggered by WebViews

This helps you get full visibility into hybrid app experiences where native and WebView content are combined.

WebView Data Enrichment

Enabling WebView detection enhances multiple Luciq products:

WebViews in APM

WebView loading times are reported alongside native screen loading metrics. This helps you measure and optimize performance across both native and web-based content.

WebViews in Bug Reporting, Crash Reporting, and Session Replay

  • User interactions inside WebViews are captured (navigation, swipe, tap, scroll)

  • Network logs from requests made inside WebViews (Fetch/XHR) are automatically captured

  • Both appear in the logs section; user interactions also appear in Repro Steps

Setup

Master WebView Tracking API

The Master API controls all WebView data collection at runtime, including:

  • User interactions

  • Network logs

  • Screen loading in APM

By default, the Master API is disabled. Enable it after Luciq.init:

The Master API alone doesn't enable tracking—it only allows these features to work. You still need to explicitly enable each feature (user interactions, network logs) using their respective APIs.

User Interactions & Network Logs

By default, user interactions and network logs inside WebViews are disabled. Enable them at runtime:

API Summary

API
Purpose
Default

setWebViewMonitoringEnabled()

Master switch for all WebView tracking at runtime

false

setWebViewUserInteractionsTrackingEnabled()

Capture user interactions in WebViews

false

setWebViewNetworkTrackingEnabled()

Capture network logs from WebViews

false

Requirements

  • Luciq SDK version v19.7.0 or later

  • On Android, only the native WebView class is supported

Last updated