Cap-go/capacitor-inappbrowser

Dispose WebView after closing

Closed this issue · 3 comments

Hello!
I noticed that WebView in Android is not being destroyed after it's closed. As far as I can see in the plugin code (I'm not an Android developer), there is no explicit call to the webView.destroy() method anywhere.

Is this the correct behavior? Should it be fixed, even though it might break backward compatibility in some cases?
I recorded my observation on video.

screen recording
1080_.2023-11-25.02.11.05.mp4

Can you open a Pr with your change?

i added it already after you report and forgot to tell you thanks for the report

i added it already after you report and forgot to tell you thanks for the report

Awesome! Thank you so much 🤝