Disabling WebView tracking

By default, the SDK automatically sends an Interaction request for WebView Interaction path.
Note: When a local file is loaded into a WebView, the path for an Interaction is generated as a wildcard. For example, for a local WebView folder in the assets directory the Interaction path will be android://touchpoint/*/webview/*, and if there is no such directory in local files, the path will be generated directly for an html file as follows: android://touchpoint/*/htmlfilename.

To disable WebView tracking, call the disableWebViewInteractionTracking Kotlin extension function or the MedalliaMXO.setAutomaticInteractionTrackingConfiguration Java method with the appropriate configuration, as shown below:

Kotlin
Java
import com.medallia.mxo.automatic.MXOAutomaticInteractionTrackingConfiguration.Companion.copy import com.medallia.mxo.mxoAutomaticInteractionTrackingConfiguration // Disabling the web view tracking. mxoAutomaticInteractionTrackingConfiguration = mxoAutomaticInteractionTrackingConfiguration.copy { disableWebViewInteractionTracking = true } // Updating the web view tracking configuration. mxoAutomaticInteractionTrackingConfiguration = mxoAutomaticInteractionTrackingConfiguration.copy { disableWebViewInteractionTracking = false }import com.medallia.mxo.MedalliaMXO; import com.medallia.mxo.automatic.MXOAutomaticInteractionTrackingConfiguration; // Disabling the web view tracking. final MXOAutomaticInteractionTrackingConfiguration webviewTrackingConfiguration = new MXOAutomaticInteractionTrackingConfiguration.Builder() .disableWebViewInteractionTracking(true) .build(); MedalliaMXO.setAutomaticInteractionTrackingConfiguration(webviewTrackingConfiguration); // Updating the web view tracking configuration. MXOAutomaticInteractionTrackingConfiguration currentConfiguration = MedalliaMXO.getAutomaticInteractionTrackingConfiguration(); MXOAutomaticInteractionTrackingConfiguration.Builder builder = currentConfiguration != null ?currentConfiguration.builder() : new MXOAutomaticInteractionTrackingConfiguration.Builder(); MXOAutomaticInteractionTrackingConfiguration updatedConfiguration = builder .disableWebViewInteractionTracking(false) .build(); MedalliaMXO.setAutomaticInteractionTrackingConfiguration(updatedConfiguration);