Skip to content

<webview_flutter> Page destruction, audio is still playing #33299

@Hwy152

Description

@Hwy152

Android:When the page is destroyed, the audio continues to play.

My suggestion:My suggestion:
@OverRide
public void dispose() {
if(webView != null){
webView.clearCache(true);
webView.removeAllViews();
webView.destroy();
}
methodChannel.setMethodCallHandler(null);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions