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
[inappmessaging] The leakage of previous cached WebView in InAppMessaging.kt #18
Comments
@AlanChiou We will accept your proposal. |
@wasnot |
@AlanChiou Does "closes the app" mean that the app goes to the background? Currently, the SDK does not release WebView when the app goes to the background. When the app is terminated, we think that the WebView is released with the app. As pointed out in the issue, |
@wasnot |
@AlanChiou Please confirm. |
Expected Behavior
Before creating a new WebView,
you should release and destroy the previous cached WebView.
karte-android-sdk/inappmessaging/src/main/java/io/karte/android/inappmessaging/InAppMessaging.kt
Line 306 in d237631
Current Behavior
When there is an existing WebView,
you create a new WebView and replace the variable.
It causes the previous one leaks.
Possible Solution
Destroy and release the previous one first.
Steps to Reproduce
KarteApp.renewVisitorId()
karte-android-sdk/inappmessaging/src/main/java/io/karte/android/inappmessaging/InAppMessaging.kt
Line 150 in d237631
SDK Version
Android Version
Build Environment
Context Details
We received some crash reports of WebView. This is one of potential root causes.
Logs
Possible Implementation
The text was updated successfully, but these errors were encountered: