Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MT-1531] - TagManagement: Fix terminate webView on Tealium shutdown #239

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

tamayok
Copy link
Contributor

@tamayok tamayok commented Jun 3, 2024

No description provided.

@tamayok tamayok requested a review from jameskeith June 3, 2024 22:08
@@ -410,6 +412,14 @@ class WebViewLoader(
registerNewSessionIfNeeded(sessionId)
}

override fun onInstanceShutdown(name: String, instance: WeakReference<Tealium>) {
try {
webView.destroy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should only be called on the main thread - should already have access to the main thread in this class to wrap the call to the webview.

@tamayok tamayok merged commit aada46e into main Jul 8, 2024
4 checks passed
@tamayok tamayok deleted the mt-1531 branch July 8, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants