Skip to content

Commit

Permalink
Subscribe using new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Nov 27, 2024
1 parent c16db2c commit 9b80429
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.snowplowanalytics.snowplow.configuration.ConfigurationState
import com.snowplowanalytics.core.remoteconfiguration.RemoteConfigurationBundle
import com.snowplowanalytics.core.tracker.ServiceProvider
import com.snowplowanalytics.core.tracker.TrackerWebViewInterface
import com.snowplowanalytics.core.tracker.TrackerWebViewInterfaceV2
import com.snowplowanalytics.snowplow.configuration.*

import com.snowplowanalytics.snowplow.controller.TrackerController
Expand Down Expand Up @@ -356,6 +357,7 @@ object Snowplow {
@JvmStatic
fun subscribeToWebViewEvents(webView: WebView) {
webView.addJavascriptInterface(TrackerWebViewInterface(), TrackerWebViewInterface.TAG)
webView.addJavascriptInterface(TrackerWebViewInterfaceV2(), TrackerWebViewInterfaceV2.TAG)
}

// Private methods
Expand Down

0 comments on commit 9b80429

Please sign in to comment.