WebView Support
Track and capture user interactions, network logs, and screen loading within WebViews.
Last updated
Track and capture user interactions, network logs, and screen loading within WebViews.
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.
Enabling WebView detection enhances multiple Luciq products:
WebView loading times are reported alongside native screen loading metrics. This helps you measure and optimize performance across both native and web-based content.
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
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.
By default, user interactions and network logs inside WebViews are disabled. Enable them at runtime:
setWebViewMonitoringEnabled must be enabled for setWebViewUserInteractionsTrackingEnabled and setWebViewNetworkTrackingEnabled to take effect.
setWebViewMonitoringEnabled()
Master switch for all WebView tracking at runtime
false
setWebViewUserInteractionsTrackingEnabled()
Capture user interactions in WebViews
false
setWebViewNetworkTrackingEnabled()
Capture network logs from WebViews
false
If setWebViewMonitoringEnabled(false) is set, all other WebView APIs will have no effect.
Luciq SDK version v19.7.0 or later
On Android, only the native WebView class is supported
Last updated
Luciq.setWebViewMonitoringEnabled(true);// Track taps and other user interactions inside WebViews.
Luciq.setWebViewUserInteractionsTrackingEnabled(true);
// Log network requests issued from WebViews.
Luciq.setWebViewNetworkTrackingEnabled(true);